Help.. I Killed my httpd.conf file..

SCARECROW

Shaguar Pimp
I upgraded apache, php and mySQL all to the most current versions.

I then tried to add index.php to the httpd.conf file.

I did so in pico.. and saved the file, all while in sudo.

Everything seemed fine, but I could not get it to work.. so I rebooted the machine..

Now, whenever I try and start the web server, I get this error:

/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 240 of /etc/httpd/httpd.conf:
API module structure `hfs_apple_module' in file /usr/libexec/httpd/mod_hfs_apple.so is garbled - perhaps this is not an Apache module DSO?
/usr/sbin/apachectl graceful: httpd could not be started



Thats not even the line # that I changed, besides, I have went back in and changed the file.. but no love.

What gives? How do I get my apache working again?

Please help.. this is driving me nuts.
 
Did you back up the default httpd.conf or a previous version before attempting your upgrades??

Line 240 of httpd.conf reads:
LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so
(It is uncommented by default).

If it is not that simple, here is the as-delivered httpd.conf file; install it, cp it to /etc/httpd/http.conf and try editing the file again.
 

Attachments

  • httpd.conf.default.txt
    36.2 KB · Views: 4
Back
Top