get this: http://www.bresink.de/osx/TinkerToolSys.html INSANELY handy AND easy to use
On Apr 9, 2006, at 1:16 AM, Joseph Brick wrote:
Hi Brion,
So I found the file by drilling down in terminal. (I'm a GUI guy, so if there is a way to get Finder to find these type of system files, let me know.)
It turns out that there are TWO lines that you have to remove the comment (#) from in httpd.conf to enable PHP:
1. The one you pointed out: #LoadModule php4_module
And also:
2. #AddModule mod_php4.c
Also, for any other newbies like me, to edit the httpd.conf file, you need root access. The "sudo" command gives you temporary root access; otherwise, when you try to save the file, you'll get "access denied." Use the following command in Terminal, once in the etc/httpd/ folder:
sudo pico httpd.conf
Edit the two lines, restart the server (by going to Prefs/Sharing and restarting Personal Web Serving) and you should be good to go.
Thanks Brion!
On 4/8/06, Joseph Brick jbrick@gmail.com wrote:
Hi Brion,
There is no file on my system (according to Finder) called httpd.conf.
On 4/8/06, Brion Vibber brion@pobox.com wrote:
Joseph Brick wrote:
Trying to set up a local mediawiki server on my Mac (osx 10.4.4).
[snip]
So I go to http://127.0.0.1/mediawiki/ in my browser, but rather than being presented with a web page (which I assume would guide me through setup), I simply see the file listing of that folder. E.g:
Mac OS X ships with PHP installed, but disabled in the web server. You must enable the PHP module in the Apache configuration file.
In /etc/http/httpd.conf you will find a line like this:
#LoadModule php4_module libexec/httpd/libphp4.so
Remove the "#" from the start of the line to uncomment it, then restart Apache. (You can do this by unchecking and re-checking 'Personal Web Sharing' in the Sharing control panel, or running "sudo apachectl restart" in a terminal.)
If I'm looking at the default config file correctly, once PHP is enabled the index.php should automatically start working. If for some reason it doesn't, you may need to also add a line like:
DirectoryIndex index.html index.php
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l