I have apache2 installed on Mac OS X 10.7.4 via macports
Recently I have not been able to access my localhost directory I get a 404, but I can access 127.0.0.1
I've tried restarting apache:
sudo /opt/local/apache2/bin/apachectl stop
sudo /opt/local/apache2/bin/apachectl start
and I get the following errors:
(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address [::]:443
I've checked that web sharing is off. It seems like apache is already using these points or the service is not stopping correctly.
How can I find out what is using the ports?