|
EASY way to get GD php library for mac os x
|
|
|
|
|
Contributed by Chad Brandt
|
|
|
|
Saturday, 24 January 2009
The php5 that is installed by default in mac os X is not compiled with the GD library. This causes issues when using software like drupal that requires this. There is an easy way to get this working by using the php5 download from enthophy. Just follow these steps and you will have php5 with GD lib running on your mac os x
1. Download the php from http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
2. Unzip this to usr local using
>sudo tar -zxvf php5-5.2.5-6-beta.tar.gz -C /usr/local
You should have a directory now /usr/local/php5
3. Comment out the php5 loaded in /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
4. Let apache know to use the php5 from entrophy
>sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
5. Restart apache
> sudo apachectl stop
> sudo apachectl start
check output of /var/log/system.log to make sure there were no errors during startup
You can ensure apache is up and running with netstat
>netstat -a -n | grep 80 | grep LISTEN
tcp46 0 0 *.80 *.* LISTEN
Now GD library should work with php on macPowered by AkoComment 1.0 beta 2! |