How to install and enable Apache and PHP in Mac OS X —09 April 2012
Mac OS X 10.5 (Leopard) comes preinstalled with Apache 2 and PHP 5, you just have to enable them.
To enable Apache, open System Preferences, go to Sharing and put a check in Web Sharing.
To enable PHP:
/private/etc/apache2/httpd.conf, uncomment the line
- Restart Apache (uncheck and check again the Web Sharing box in System Preferences / Sharing)