Search
« The Production Server has Bad Code, and The Bad Code is Yours | Main | Social Media and Short Attention... What was that again? »
Wednesday
Aug112010

Test your Apache Configuration

We have all done it before. Changed the vhosts configuration, left a spelling mistake, and restarted the server, only to have everything die. So I don't forget, here is how to test.

Mac OSX

[bash]apachectl configtest[/bash]

XAMPP on OSX

[bash]/Applications/XAMPP/xamppfiles/bin/apachectl configtest[/bash]

Windows

[bash]cd xampp/apache/bin/[/bash]

[bash]httpd.exe -t[/bash]

You can also use -S instead of configtest or instead of -t (on windows) to display the VirtualHost Configuration, which can be handy. Although most of the Warnings that may stop Apache from coming up will be in the configtest.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>