Copyright 2004 by M. Uli Kusterer Fri, 29 Nov -1901 11:06:32 GMT Comments on article activatingphponosx at activatingphponosx Comments witness_dot_of_dot_teachtext_at_gmx_dot_net (M. Uli Kusterer) witness_dot_of_dot_teachtext_at_gmx_dot_net (M. Uli Kusterer) en-us Comment 16 by daniel farmer note : for 10.4.11 users.

Apache Web root is :

Comment 15 by simone sorry for the bad english but i'm italian.
when i activate php following your instruction automatically i activate apache or i need a differen way to do that? my mac is 10.4.11 version.
Comment 14 by Uli Kusterer Uli Kusterer writes:
cfarm, as the article says, theAddModule line is only needed on 10.4 and earlier
Comment 13 by cfarm Hi, great read and very helpful. I was wondering, my apache config file didn't have the #AddModule mod_php4.c library. I skipped over the line and it seems to compile php just fine but am wondering how important that is.

Comment 12 by Claudia sudo pico /etc/httpd/mime.types
After I entered that, there was no MIME type lists showing up, it was just blank..
Comment 11 by Matt Burns i followed the instructions, but it won't let me re-enable personal web sharing. i let it sit for over an hour, and nothing. i've gone through the instructions again, and everything that was supposed to be changed was changed. do you have any suggestions? is there a way i can reset the file and repeat the process in case i altered something else by mistake?
Comment 10 by Uli Kusterer Uli Kusterer writes:

no, it's on every Mac. Did you get no "php" found in both files? I'd have to look again, but it might be unnecessary to do some of these steps on newer Mac OS X versions.
Comment 9 by Peter Peter writes:
Hi Uli,

It was all going very well until the search command could not find any instance of PHP.

Do I need to go and find and install it first? Is my Mac the only one that came without it?

Is there any chance you can help me with this please?

Best, Peter...
Comment 8 by Uli Kusterer Uli Kusterer writes:
I can't tell. Every installer is different. But if you have an installer that was built using PackageMaker (standard Mac installer), you can get it to display its file list. There's a menu item when you open the installer, that lists all the paths.
Comment 7 by Steve ... in other words, is there anything that needs to be cleared out besides the contents of the /usr/local/php5 directory?

I figured I should have clarified.

Comment 6 by Steve Thanks for the instructions!

Where do I go to clean out the failed installations of PHP? Unfortunately the installer does not reveal the installation location.


Comment 5 by larisa larisa writes:
excellent, clear instructions. i was trying to install php onto my mac and all i had to do was enable it. thanks for your help!
Comment 4 by jonah jonah writes:
Thanks Uli, I love my MacBook even more now.
Comment 3 by Steve Excellent job... well written and clear. It was a great help, thanks!
Comment 2 by Uli Kusterer Uli Kusterer writes:
@Neil: /etc/apache2 is a symlink to /private/etc/apache2, so editing both should work just fine.
Comment 1 by Neil Nguyen Neil Nguyen writes:
Note that for Mac OS X 10.5 (Leopard), the httpd.conf file used by Apache is in a different location: /private/etc/apache2/httpd.conf.
There still exists a /etc/httpd/httpd.conf file, but editing that file will have no effect whatsoever. You must edit the one in the /private/etc/apache2 folder.