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 0.0.0.0:80
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 innsites-enabled/www.conf
.To find out, use:
grep -ri listen /etc/apache2
Keep
Listen 80
in just a single place.