Getting a PHP build which supports GD under OS X 10.5

Obtain Liyanage’s PHP5 module with built-in GD (etc.) support:

  1. curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
  2. tar xvfz php5-5.2.5-6-beta.tar.gz
  3. sudo mv php5 /usr/local/
  4. sudo chown -R root:admin /usr/local/php5

Edit /etc/apache2/httpd.conf to ignore the Apple-installed module and load the new Liyanage module:

# LoadModule php5_module        libexec/apache2/libphp5.so

LoadModule php5_module        /usr/local/php5/libphp5.so

 

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*