Debugging Apache with OSXS 10.8 Server 2.2


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

Want updates on our latest blog posts?
Subscribe to our newsletter!

Previous Post
Code Signing a FileMaker Runtime
Next Post
Curl HTTP Post from FileMaker