A blog post

How To Install the PHP GD Library on Mac OSX 10.5 Leopard

Posted on the 20 July, 2009 at 6:57 am Written by admin in Uncategorized

# 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

#Edit /usr/local/php5/lib/php.ini to set mysql settings
sudo vi /usr/local/php5/lib/php.ini
find and write "mysql.default_socket = /var/mysql/mysql.sock"

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

# restart Apache
sudo apachectl restart

Sources:

http://snipplr.com/view.php?codeview&id=13763

http://www.entropy.ch/phpbb2/viewtopic.php?t=2945&postdays=0&postorder=asc&highlight=leopard&start=0

http://macoshelp.blogspot.com/2008/02/adding-gd-library-for-mac-os-x-leopard.html

http://discussions.apple.com/thread.jspa?threadID=1578979

reply