apachectl: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "{{seed}} ==Links== ===Reference=== * [https://httpd.apache.org/docs/2.4/programs/apachectl.html Apache official] * [https://www.commandlinux.com/man-page/man8/apachectl.8.html..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{seed}} | {{seed}} | ||
{{box/right|__TOC__}} | |||
==About== | |||
[[apachectl]] is a [[command-line]] utility provided with [[Apache httpd]]. | |||
==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 -M</code> : shows loaded modules<ref name=sof /> | |||
* <code>apachectl -S</code> : dumps the entire config<ref name=sof /> (works in v2.4) | |||
Default help dump: | |||
<pre> | |||
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) | |||
</pre> | |||
==Links== | ==Links== | ||
===Reference=== | ===Reference=== | ||
* [https://httpd.apache.org/docs/2.4/programs/apachectl.html Apache official] | * [https://httpd.apache.org/docs/2.4/programs/apachectl.html Apache official] | ||
* [https://www.commandlinux.com/man-page/man8/apachectl.8.html Linux Commands] | * [https://www.commandlinux.com/man-page/man8/apachectl.8.html Linux Commands] | ||
==Footnote== | |||
<references> | |||
<ref name=sof>'''2014-11-26''' [https://stackoverflow.com/questions/27152943/how-can-i-view-the-complete-httpd-configuration How can I view the complete httpd configuration?]</ref> | |||
</references> | |||
Latest revision as of 14:50, 1 April 2022
<hide>
page status::seed
</hide>
|
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<ref name=sof />apachectl -S: dumps the entire config<ref name=sof /> (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
<references> <ref name=sof>2014-11-26 How can I view the complete httpd configuration?</ref> </references>
