apache2ctl -t

Category: Web Servers & Proxies

apache2ctl -t

Test Apache configuration syntax

Parses the main config and every included file, reporting syntax errors with file and line numbers. Run it before every reload or restart to avoid taking the site down with a typo. Equivalent to the apache2ctl configtest alias.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.