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 :)
One of a couple of things could be happening:
- 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
- You're not running
apachectl start
as root, although it appears that you are. - You can run
sudo lsof -i:80
to see what's binding that port currently