depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

How to Enable PHP in Apache for Mac OS X

June 19, 2013 by The Man

Simply open terminal and type

sudo nano /etc/apache2/httpd.conf

Then find the line

#LoadModule php5_module libexec/apache2/libphp5.so

and remove the hashtag, save then type

sudo apachectl restart

to restart Apache.