Logo

Enabling LAMP in Mac OSX

Posted under » Mac on 05 January 2010

Enabling PHP

PHP is installed in Mac OS X by default, but not enabled. To enable it, we must edit the apache 2 configuration file, which is located at

/etc/apache2/httpd.conf. Which is the same location in ubuntu. Because OSX is like linux, you have to edit it while being root.

Find the line which loads the PHP 5 module, which looks like this: