Last Updated: February 25, 2016
·
348
· adamphillips

Restart apache with additional debug information

Was having problems setting up a local dev environment on a brand new Mountain Lion machine. Apache was refusing to start but no error or access logs were being generated.

Found this way of restarting apache that provided additional debug info.

sudo bash -x /usr/sbin/apachectl -k graceful

This gave me the clue I needed to fix my problem. Hopefully will do the same for you.