Apache2 configuration for localhost only

Asked by Mark Fortescue on 2011-10-07

I use to be able to run Apache2 on localhost but upgrades have messed something up so now I get:

 * Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs

Please can someone provide a set of configuration files (based on the default install scripts) that will allow me to start apache2 on 'localhost' on a computer that may or may not have network access depending on where it is (i.e. its fully qualified domain name may or may not exist or be accessible via DNS and its external network interfaces may or may may not be operational).

Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Mark Fortescue (mark-mtfhpc) said : #3

The problem was a configuration issue in ports.conf.

Listen 80 tries to open all 127.*.*.*:80 ports not just

Changing ports.conf to Listen only on fixes the issue.

This may indicate something else is incorrectly configured somewhere but reverting all configuration to default values does not fix it so it may be a software or just bad default configuration files.

Mark Fortescue (mark-mtfhpc) said : #4

Is there a way to change status from Expired to solved?

Best Jacobsallan (jacobsallan) said : #5


Mark Fortescue (mark-mtfhpc) said : #6

Thanks Jacobsallan, that solved my question.