Leopard (OS X 10.5) ships with PHP 5.2.4 (cli) installed along side Apache 2.2.6. However, it’s disabled by default. Here’s how to enable it.
Open Terminal and choose your editor (vi, pico or other) and edit the following (sudo required!):
/etc/apache2/httpd.conf
Then search for the word php.It will find the line
LoadModule php5_module libexec/apache2/libphp5.so.
Uncomment this and save.At the command prompt site
sudo apachectl restart
That’s it!
Subscribe
Leave a Reply