upgrade apache/PHP

Discussion in 'macOS' started by darakok, Jul 28, 2010.

  1. darakok macrumors newbie

    Joined:
    Jul 21, 2010
    #1
    based on the latest snow leopard 10.6 client version. I want to know if it's possible to upgrade either Apache web server or PHP module to a later version?

    And could you tell if it's recommended to upgraded or not?


    Thanks so much,

    dara kok
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    You would be best off just compiling your own custom versions rather than trying to overwrite the versions that come built into Mac OS X. At least that way you'll be able to specify exactly what you want to be available in your PHP binaries (including database support for MySQL and / or PostgreSQL) which is not available in the Apple supplied ones.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
  4. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    This isn't hard at all, assuming you have Xcode installed. Read the directions in the INSTALL file for both Apache and PHP, then build 'em. Generally all that's required is:
    Code:
    cd /path/to/source
    ./configure
    make
    sudo make install
     
  5. darakok thread starter macrumors newbie

    Joined:
    Jul 21, 2010
    #5
    will it replace the existing install?

    Code:
    cd /path/to/source
    ./configure
    make
    sudo make install
    
    Does the above method replace the existing install?


    Thanks,
     
  6. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    No, it does not. It creates a new install in /usr/local/ instead.
     

Share This Page