Besides being a bit of a mouthful, debugging Apache configuration issues has gotten slightly more complicated after Apple released the Server 2.2 update for Mac OS X Server.
Formerly, you could do a basic configuration check this way:
apachectl -t
Now however you need to first set an environment variable and specify a path to the configuration file:
export SERVER_INSTALL_PATH_PREFIX=/Applications/Server.app/Contents/ServerRoot
apachectl -t -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON
The above assumes you are running as root, where “#” is prompt.
Simon