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 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                                         [fail]

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

Language:
English Edit question
Status:
Solved
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Solved by:
Jacobsallan
Solved:
2011-11-28
Last query:
2011-11-28
Last reply:
2011-11-28
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 127.0.0.1:80

Changing ports.conf to Listen only on 127.0.0.1:80 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

Done.

Mark Fortescue (mark-mtfhpc) said : #6

Thanks Jacobsallan, that solved my question.