Enabling PHP on Mac OSX’s Apache2

If you read my last entry, you’ll know that Mac OSX comes with Apache2. It also comes with PHP, but Apache2 isn’t configured to enable it. Here’s the short and simple howto for enabling PHP on it.

Open the httpd.conf located at /private/etc/apache2/httpd.conf.

Uncomment the following line (by removing the #):

#LoadModule php5_module      libexec/apache2/libphp5.so

Restart apache2

For a more in-depth howto, go here: http://foundationphp.com/tutorials/php_leopard.php

Tagged , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: