1

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?

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

1 Answer 1

-1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .