PHP GD on Leopard [note to self]

This is more of a note to self than anything else and I do not intend to steal credit for this tip on how to get a custom PHP 5 working on Leopard with the GD library installed. Credit is due to Sheldon who posted this gold nugget of information as a comment at http://macoshelp.blogspot.com.

This requires use of the command line so be careful as it requires administator privileges. Open Terminal to continue:

sudo nano /etc/apache2/httpd.conf

Find this "LoadModule php5_module libexec/apache2/libphp5.so" and add a "#" (no quotes) at the front of the line to comment out Leopard's default PHP5 library

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
rm php5-5.2.5-6-beta.tar.gz
sudo apachectl restart

That should get you all the GD goodness you need in PHP working. Thanks Sheldon!

Comments

Number: 01

Date: 13.07.08

Shannon Murdoch said:

Great to see it presented so simply - worked a charm for me on a default install of 10.5.1 upgraded to 10.5.4 using combo update. Thanks a million.

Number: 02

Date: 13.01.12

dnvltyu said:

vvdqrza

Number: 03

Date: 19.01.12

payday loan said:

qunsmk http://paydayloans24x7.net/ payday loan 3816 Payday Loan onine 4617 [url=http://autoloans24x7.com/]car loan[/url] >:-OOO

Number: 04

Date: 21.01.12

viagra said:

ephuenn http://buccialis.com/ cialis and levitra FxGfi viagra 8]]] [url=http://bucviagra.com/]viagra[/url] kTwZZ

Number: 05

Date: 04.02.12

cialis said:

syyifli [url=http://qcialis.fr/]cialis[/url] 9736 [url=http://qcialis.eu/]cialis[/url] :-O [url=http://qviagra.fr/]viagra en ligne[/url] xlSndc [url=http://qviagra.eu/]viagra[/url] 4783 [url=http://qcialis.it/]cialis online[/url] wvbUp [url=http://qviagra.it/]viagra[/url] >:]]

Post a comment

Comment details
anti-spam code. you need to be able to view images to post a comment. sorry.