we just got through a power outage. All our servers came back up properly, except out web server gives me this error when attempting to start apache:
# apachectl start
no listening sockets available, shutting down
Unable to open logs
I've verified that there are no processes using the port apache is configured to listen on, and I can't fine apache running in ps aux. Does anyone have any suggestions for troubleshooting this?
127.0.0.1 DNS servers, can you check in your /etc/hosts 127.0.0.1 then try to start the services
Is anything else listening on port 80? netstat -nlt show anything else on 80?
Has servername changed and/or resolv.conf not able to do a reverse lookup on starting up apache.
Does hostname -f resolve properly?
Apache won't start if it can't log. The second line,
Unable to open logs
, jumps out at me more so than the first.Check to make sure that there's enough disk space for the path which you are logging.
df -H
Also, verify permissions for the logging directory and files.
ls -al /var/log/httpd
Ok, I figured out the problem - sorry the answer is so late in coming, things are really busy here. Thanks for all your help!
The problem was that this server has a special setup, and I needed to pass apachectl the -d SSL option for it to start.