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:
- Edit
/private/etc/apache2/httpd.conf
, uncomment the lineLoadModule php5_module
- Copy
/private/etc/php.ini.default
to/private/etc/php.ini
- Restart Apache (uncheck and check again the Web Sharing box in System Preferences / Sharing)