Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question DNS servers, can you check in your /etc/hosts then try to start the services

share|improve this answer
I'm not sure what you're asking, but the line in /etc/hosts that starts with is ' localhost' – JohnB Sep 20 '10 at 18:57
I should note that this server has been running without issue for several years, and nothing has changed on it for the past couple months. – JohnB Sep 20 '10 at 19:03
i m asking do you have entry at hosts file or yours DNS entry suppose if you have config that is redirected to – Rajat Sep 20 '10 at 19:04
but right now its not work you said – Rajat Sep 20 '10 at 19:04
no, I just have the entry in /etc/hosts the way I wrote it in my first comment. – JohnB Sep 20 '10 at 19:13

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?

share|improve this answer

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

share|improve this answer
up vote 0 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.