Have you ever tried restarting Apache in Ubuntu while in a production environment only to find out that you had an error somewhere in your virtual host configuration?┬áThis might mean several minutes, even hours, of downtime (which also means lost revenue) as you diagnose what went wrong with your syntax especially if you didn’t have any backup.

Like what any good Geekysaur would do, you should test your configuration before reloading or restarting Apache. Just run sudo apache2ctl configtest or sudo apache2ctl -t and you’re good to go!

Apache Config Test

Make sure to test your Apache configuration before restarting or reloading Apache!

What do you think guys? Do you have a better way of testing Apache configuration? How about for other distros? Leave your comments below!