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

After I updated my apache, none of my virtual hosts are accessible anymore, the server responds "Connection refused". No errors are in the logs and I have no idea what is causing this. My virtual host is something like this:

 <VirtualHost 173.XXX.XXX.XXX:80>
 <VirtualHost 173.XXX.XXX.XXX:443>

Any ideas of how to debug?

share|improve this question
Did you start Apache? – Michael Hampton Mar 15 '13 at 18:25
Of course! The apache is running. I also rebooted the system. – Lucas Pelegrino Mar 15 '13 at 18:26
up vote 3 down vote accepted

"Connection refused" would mean that apache is not listening on port 80; run this command to make sure" lsof -i:80, if you found no output then start apache and try again

Update: after seeing some output of different commands; it turned out that libapache2-mod-php5 is not installed according to dpkg -l | grep apache2 it was flagged as 'rc' (removed, but configuration files remaining). Since the debug information was showing loading mod_php5 then the absence of this package is what causing apache not to start

share|improve this answer
No output is given. Weird... I did service apache2 start and returned "Starting web server apache2 [OK]", after I tried pgrep apache and no output was shown. Is apache not being initialized, even saying [OK]?! – Lucas Pelegrino Mar 15 '13 at 18:32
try running 'apache2ctl -t' to test your configuration – minniux Mar 15 '13 at 18:35
Syntax OK. Everything was fine before the update. – Lucas Pelegrino Mar 15 '13 at 18:36
what about running: apache2ctl -k start ? – minniux Mar 15 '13 at 18:41
Tried and no output =/ – Lucas Pelegrino Mar 15 '13 at 18:42

Do you have your "Listen" directives in your vhost files or in /etc/apache2/ports.conf?

You should have a line similar to :

Listen 80
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.