Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Im looking for a command that checks the validity of the config files in apache server (both Debian and RHEL distros - need to do it prior to restart, so there will be no downtime). I cant quite remember what it is and man pages / quick googling didnt have an answer. Thanks.

share|improve this question

migrated from stackoverflow.com Feb 7 '11 at 13:30

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 31 down vote accepted

Check: http://httpd.apache.org/docs/2.2/programs/apachectl.html

apachectl configtest
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.