Return to Snippet

Revision: 13003
at April 4, 2009 07:39 by terrencewood


Initial Code
# Adapted from Sheldons instuctions
# http://macoshelp.blogspot.com/2008/02/adding-gd-library-for-mac-os-x-leopard.html

# Comment out "LoadModule php5_module libexec/apache2/libphp5.so"
# in httpd.conf tp prevent the default PHP installation from loading
cd /private/etc/apache2
bbedit httpd.conf


# Download and install a compiled version of PHP + GD 
cd /usr/local
sudo curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
sudo tar -xzf php5-*-beta.tar.gz
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf

# optionally remove compressed file
rm php5-5.2.5-6-beta.tar.gz

# restart Apache
sudo apachectl restart

Initial URL


Initial Description


Initial Title
Install PHP + GD  on Mac OS X Leopard

Initial Tags
php, Bash, mac, osx, terminal

Initial Language
Bash