enable php os x apache httpd.conf file in hidden etc folder

All the quirks that hit this simple yet elegant operating application, pseudo OS.
Post Reply
darknkreepy3#
Site Admin
Posts: 247
Joined: Tue Oct 27, 2009 9:33 pm

enable php os x apache httpd.conf file in hidden etc folder

Post by darknkreepy3# »

At Apple, they like to stupid proof everything a little too much, including where things like the configuration file of Apache is. Apache is built into the operating system programs and services with OS X for quite a few years now, and it would be nice to not make it nearly impossible for the average apple designer/programmer to find out how to modify apache to allow php for instance to run as a module or plugin.

This is easy enough, but where oh where is the etc/apache2/ folder, which folder, what is the first one to look in? Look at your computer by opening your finder then simple press:

[command][shift][g] all at once, or one, hold the second as well, then finally all three with the third ;)

then enter

1. pointer to the etc folder
/etc/

or

2. the actual location of the etc folder
/private/etc/

then you can see a lot of hidden folders within... even the apache2 folder with the configuration folder as well

use textwrangler (which is free) or bbedit (which is not) to edit your config, uncomment the php line (#) is the comment character to remove:

Code: Select all

#LoadModule php5_module libexec/apache2/libphp5.so
modified to:

Code: Select all

LoadModule php5_module libexec/apache2/libphp5.so
Don't forget to save the file after you modify it!

whew. apple, could you make that any more difficult?

and NO, you should not just use MAMP to do it for you. use MAMP and then learn how to do it this way, which is much faster, better, and really will let you know what is going on in your system.

Here's a great link to an overview on all steps to getting your OS X running like a real programming / scripting environment, instead of an expensive media player / toaster:

http://www.procata.com/blog/archives/20 ... -os-x-105/
Post Reply