I can't seem to get Apache to start on any port. I'm always getting the error:
apache2(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
I checked to make sure that nothing is running on port 80 with netstat -plant|grep 80
and I even ran sudo nc -l 80
with no problems just to be certain. I thought maybe it might be a permissions thing (it shouldn't since it should be starting from an initscript), so I changed the listening port for Apache to 8080, and got the same error except on port 8080 (and nothing is running on that port either). I even tried setting ports.conf
to have Listen 127.0.0.1:80
and even Listen 127.0.0.1:8080
and still more or less the same error except for showing the corresponding address and port.
I should note that I'm on Debian Unstable.
At this point, I'm at a loss for what else to check.
sestatus
orgetenforce
.root@debian:/home/mohsen/Downloads# netstat -atupn |egrep :80 |egrep LISTEN
tcp6 0 0 :::80 :::* LISTEN 5261/apache2nmap localhost