A few days ago my Apache server stopped "starting up". Does anyone know about this issue.
I believe this is happening now because I, stupidly, moved the file named index.php to the htdocs/ folder.
I ran lsof -i | grep LISTEN lsof -i | grep LISTEN to get:
mysqld 297 waltercarvalho 10u IPv4 0xc942753e30142a85 0t0 TCP *:mysql (LISTEN) ubd 611 waltercarvalho 18u IPv4 0xc942753e310c9f35 0t0 TCP *:49228 (LISTEN) ubd 611 waltercarvalho 19u IPv6 0xc942753e2d7a5635 0t0 TCP *:49228 (LISTEN) Dropbox 720 waltercarvalho 18u IPv4 0xc942753e310c90c5 0t0 TCP *:17500 (LISTEN) Dropbox 720 waltercarvalho 25u IPv4 0xc942753e31c584dd 0t0 TCP localhost:26164 (LISTEN)
When I try to start the Apache server on port 80 to access localhost (clean path), I get:
I ran sudo /Applications/MAMP/bin/startApache.sh to get:
(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 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
This means that port 80 is used. You can find my httpd.conf file at:
http://pastebin.com/dta3hND8
I have been trying to fix this for several hours, very disappointing. I have tried everything.
Thanks.
source share