I'm using the standard Apache server in my Mac OS X 10.8 (Mountain Lion) installation, and find that when running
sudo apachectl restart
The command simply shows the prompt when finished, whether Apache failed to start or not. There is no feedback, until you refresh your browser to see if localhost still works or not.
Is there a way to configure Apache to be a bit more verbose?
Best Answer
You could try:
The
-e
option is equivalent to theLogLevel
directive, but it logs to your terminal. Replaceinfo
withdebug
for more details.The
apachectl
script and thehttpd
binary have slightly conflicting arguments, so you need to use-k
withstop
,start
,restart
andgraceful
(the command keywords alone will not work as expected when other arguments are present). To getconfigcheck
useThis applies to Apache on any platform using the standard
apachectl
script.This answer has another option, but I consider
strace
(anddtrace
,ktrace
,truss
) to be more of a last resort...