Monday, October 1, 2012

How to Install PHP on a Mac


To install PHP on a MAC you first need to enable apache. Enabling apache on MAC OS X is pretty simply... All you need to do is go into System Preferences and enable "Web Sharing".

Once you do that... you need to change your apache configuration file to enable it to load the php module. Here are the 3 simply steps you need to follow:

1.  Navigate to /etc/apache2/
2.  vi httpd.conf and Uncomment #LoadModule php5_module libexec/apache2/libphp5.so
3.  Restart apache. 

This is it.. but you may want to backup your php.ini file before you make any changes to it. You can find php.ini in /private/etc. 


No comments:

Post a Comment