Difference between revisions of "apachectl"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{seed}} | {{seed}} | ||
+ | {{box/right|__TOC__}} | ||
+ | ==About== | ||
+ | [[apachectl]] is a [[command-line]] utility provided with [[Apache httpd]]. | ||
==Options== | ==Options== | ||
* <code>apachectl configtest</code> : tests the current configuration without trying to load it (which could result in Apache not running), and gives diagnostic information | * <code>apachectl configtest</code> : tests the current configuration without trying to load it (which could result in Apache not running), and gives diagnostic information |
Latest revision as of 14:50, 1 April 2022
This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!
|
About
apachectl is a command-line utility provided with Apache httpd.
Options
apachectl configtest
: tests the current configuration without trying to load it (which could result in Apache not running), and gives diagnostic informationapachectl -M
: shows loaded modules[1]apachectl -S
: dumps the entire config[1] (works in v2.4)
Default help dump:
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed vhost settings -t -D DUMP_RUN_CFG : show parsed run settings -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG -t -D DUMP_MODULES : show all loaded modules -M : a synonym for -t -D DUMP_MODULES -t -D DUMP_INCLUDES: show all included configuration files -t : run syntax check for config files -T : start without DocumentRoot(s) check -X : debug mode (only one worker, do not detach)
Links
Reference
Footnote
- ↑ 1.0 1.1 2014-11-26 How can I view the complete httpd configuration?