48)Address already in use: AH00072: make_sock: could not bind to address [::]:80 48)Address already in use: AH00072: make_sock: could not bind to address [::]:80 apache apache

48)Address already in use: AH00072: make_sock: could not bind to address [::]:80


In my Mac with Mojave (10.14.1) suddenly Apache couldn't give to serve ipv4 anymore, then gave me ERROR 403. I tried to kill all apache (sudo killall httpd)... checking de PID's on (sudo lsof | grep AMP | grep apache)... even didn't work... just ipv6 was available... still ERROR 403.

What works for me: Disable OSX's built-in Apache server.

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

After that:

sudo apachectl -k restart

Be happy :)


This one helped me:

Please edit httpd.conf file.

/usr/local/etc/httpd/httpd.conf

And replace

Listen 80

with

Listen 127.0.0.1:80

Restart apache

sudo apachectl -k restart


One of a couple of things could be happening:

  1. You have a different version of apache running. You can make sure that you're using the correct one by running which apachectl. As an example, I also have two versions of apache /usr/sbin/apachectl and /usr/local/bin/apachectl
  2. You're not running apachectl start as root, although it appears that you are.
  3. You can run sudo lsof -i:80 to see what's binding that port currently