Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mrjamin

macrumors 65816
Original poster
Feb 6, 2003
1,161
1
Strongbadia
dear all,

apache has started to play up recently; every time i attempt to restart/start it i get the following error:

Code:
sudo apachectl graceful
Password:
/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 2 of /etc/httpd/httpd.conf:
Invalid command 'od_status.so', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl graceful: httpd could not be started

Line 2 is "## httpd.conf -- Apache HTTP server configuration file", the second uncommented line is "ServerRoot "/usr"" and the only mention of the troublesome "od_status.so" is on the following line:

"#LoadModule status_module libexec/httpd/mod_status.so"

you see my confusion!

I've reverted the httpd.conf file to its original state (using the httpd.conf.default AND httpd.conf.bak) but i still get the same error - any ideas? I'm thinking that just reinstalling apache would be the best bet but i have no idea how to go about it!

to summarise: HELP!
 

macktheknife

macrumors 6502a
Jan 24, 2002
639
0
You could always just replace the httpd.conf file. That should do the trick. Make sure you save the old one just in case, though.
 

mrjamin

macrumors 65816
Original poster
Feb 6, 2003
1,161
1
Strongbadia
already replaced the conf file with the .default, and the .bak that was created when i installed some update - it just randomly stopped working the other day. The only changes i made to the conf file were months ago when i enabled php.

the permissions on the file are all fine, and i've done "repair permissions".

Basically - how do i reinstall apache? can i just follow the Unix instructions?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.