Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How to debug a situation where httpd is running but netstat shows Apache is not listening?

This is a server where I run two apaches (v2.2), one for my prod systems and one for dev, with separate IP addresses for prod and dev. Both listen on port 80.

Today when I tried to start my dev httpd, it started fine but I was unable to connect. nslookup indicates that DNS is okay. ps aux shows both apaches running, but netstat shows only prod is listening. I have confirmed that httpd.conf for dev server is loading and it contains correct Listen commands.

How can I debug this from here? How can Apache start but not listen?

share|improve this question
are you listening on the same interface that netstat is reporting? – EhevuTov Sep 5 '13 at 19:54
Won't netstat -la report all interfaces on server? Not sure how I would point netstat at dev. – vortek Sep 6 '13 at 20:54

This turned out to be a firewall issue. The IP address for dev was not opened in the firewall.

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.