Posted By

terrencewood on 04/04/09


Tagged

php gd Bash mac osx terminal leopard


Versions (?)

Install PHP + GD on Mac OS X Leopard


 / Published in: Bash
 

  1. # Adapted from Sheldons instuctions
  2. # http://macoshelp.blogspot.com/2008/02/adding-gd-library-for-mac-os-x-leopard.html
  3.  
  4. # Comment out "LoadModule php5_module libexec/apache2/libphp5.so"
  5. # in httpd.conf tp prevent the default PHP installation from loading
  6. cd /private/etc/apache2
  7. bbedit httpd.conf
  8.  
  9.  
  10. # Download and install a compiled version of PHP + GD
  11. cd /usr/local
  12. sudo curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
  13. sudo tar -xzf php5-*-beta.tar.gz
  14. sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
  15.  
  16. # optionally remove compressed file
  17. rm php5-5.2.5-6-beta.tar.gz
  18.  
  19. # restart Apache
  20. sudo apachectl restart

Report this snippet  

You need to login to post a comment.