Ubuntu – Apache fails to start, Address already in use (but not really)


I'm trying to set up a VM running Ubuntu 12.04. I have two virtual hosts configured using port 80, but Apache will not start.

I get this error:
(98) Address already in use: make_sock: could not bind to address

The output of netstat -tulpn shows that nothing is using port 80. What could possibly be causing this?

Best Answer

Make sure you are not declaring Listen 80 twice in .conf files.

For example, you might have it both in ports.conf and inn sites-enabled/www.conf.

To find out, use: grep -ri listen /etc/apache2

Keep Listen 80 in just a single place.

Related Question