Forum Moderators: phranque
I've tried to copy over my corrupt httpd.conf files with these backups files to no avail. Apache 2.052 was working fine this morning and all I did was fiddle with httpd.conf so that must be the culprit.
My webfiles are located in the following folder /www/ and my Apache insatll is located here /Library/Apache2/
I've trying to start Apache through System Preferences pane and it simply doesn't start. Ifd I try to start it in terminal like so: /library/apache2/bin/httpd
I get this error message: no listening sockets available, shutting down
unable to open logs
Certain options are confusing me in the httpd.conf file e.g ServerRoot is set to "/usr" should it be? the pid file doens't seem to exist in the folder it point sot (or at all for that matter) "/private/var/run/httpd.pid"
Oh, and virtual hostname has been commented out by default. I'll worry about that when Apache starts again.
Any ideas?
Can I uninstall Apache2 without stinking the place out and if so how do I do that?
p.s. I've been editing the files in BBEdit, if that makes a difference.
Base on the terminal error message and some googling I changed the Listen directive to listen to 127.0.0.1:81 and Apache started again but trying to navigate to [localhost...] tells me I've been refused connection. i changed the nameVirtualHost to 127.0.0.1:81 and my other directive to
<virtualHost localhost:81>
to no avail
so I edited NameVirtual Host out and removed the <virtual host /> as well.
and still no joy.
If I was running the SL version, I'd just reinstall the thing. Get everything nice and clean (and working) then make separate backups and go back to screwing it up again. But that's just me. :)
Added: It takes all of, what, 5 minutes to reinstall? Less time than you've spent troubleshooting so far.
It may write over your sites so you'll want to have copies of your sites elsewhere.
I don't have my machine that runs the software logistics version here to test how it reinstalls, but as long as you backup your sites you should be okay. :)