github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/programs/apachectl.html.en (about) 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> 4 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>apachectl - Apache HTTP Server Control Interface - Apache HTTP Server Version 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/programs/apachectl.html" rel="canonical" /></head> 18 <body id="manual-page"><div id="page-header"> 19 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> 20 <p class="apache">Apache HTTP Server Version 2.2</p> 21 <img alt="" src="../images/feather.gif" /></div> 22 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 23 <div id="path"> 24 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Programs</a></div><div id="page-content"><div class="retired"><h4>Please note</h4> 25 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 26 <p>You may follow <a href="http://httpd.apache.org/docs/current/programs/apachectl.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>apachectl - Apache HTTP Server Control Interface</h1> 27 <div class="toplang"> 28 <p><span>Available Languages: </span><a href="../en/programs/apachectl.html" title="English"> en </a> | 29 <a href="../ko/programs/apachectl.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 30 <a href="../tr/programs/apachectl.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 31 </div> 32 33 <p><code>apachectl</code> is a front end to the Apache HyperText 34 Transfer Protocol (HTTP) server. It is designed to help the 35 administrator control the functioning of the Apache 36 <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.</p> 37 38 <p>The <code>apachectl</code> script can operate in two modes. 39 First, it can act as a simple front-end to the <code class="program"><a href="../programs/httpd.html">httpd</a></code> 40 command that simply sets any necessary environment variables and 41 then invokes <code class="program"><a href="../programs/httpd.html">httpd</a></code>, passing through any command line 42 arguments. Second, <code>apachectl</code> can act as a SysV init 43 script, taking simple one-word arguments like <code>start</code>, 44 <code>restart</code>, and <code>stop</code>, and translating them 45 into appropriate signals to <code class="program"><a href="../programs/httpd.html">httpd</a></code>.</p> 46 47 <p>If your Apache installation uses non-standard paths, you will 48 need to edit the <code>apachectl</code> script to set the 49 appropriate paths to the <code class="program"><a href="../programs/httpd.html">httpd</a></code> binary. You can also 50 specify any necessary <code class="program"><a href="../programs/httpd.html">httpd</a></code> command line arguments. 51 See the comments in the script for details.</p> 52 53 <p>The <code>apachectl</code> script returns a 0 exit value on 54 success, and >0 if an error occurs. For more details, view 55 the comments in the script.</p> 56 </div> 57 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li> 58 <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li> 59 </ul><h3>See also</h3><ul class="seealso"><li><a href="../invoking.html">Starting Apache</a></li><li><a href="../stopping.html">Stopping Apache</a></li><li><a href="../configuring.html">Configuration Files</a></li><li><a href="../platform/">Platform Docs</a></li><li><code class="program"><a href="../programs/httpd.html">httpd</a></code></li></ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 60 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 61 <div class="section"> 62 <h2><a name="synopsis" id="synopsis">Synopsis</a></h2> 63 64 <p>When acting in pass-through mode, <code>apachectl</code> can take 65 all the arguments available for the <code class="program"><a href="../programs/httpd.html">httpd</a></code> 66 binary.</p> 67 68 <p><code><strong>apachectl</strong> [ <var>httpd-argument</var> ]</code></p> 69 70 <p>When acting in SysV init mode, <code>apachectl</code> takes simple, 71 one-word commands, defined below.</p> 72 73 <p><code><strong>apachectl</strong> <var>command</var></code></p> 74 75 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 76 <div class="section"> 77 <h2><a name="options" id="options">Options</a></h2> 78 79 <p>Only the SysV init-style options are defined here. Other arguments 80 are defined on the <code class="program"><a href="../programs/httpd.html">httpd</a></code> manual page.</p> 81 82 <dl> 83 84 <dt><code>start</code></dt> 85 86 <dd>Start the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon. Gives an error if it 87 is already running. This is equivalent to <code>apachectl -k 88 start</code>.</dd> 89 90 <dt><code>stop</code></dt> 91 92 <dd>Stops the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon. This is equivalent to 93 <code>apachectl -k stop</code>.</dd> 94 95 <dt><code>restart</code></dt> 96 97 <dd>Restarts the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon. If the daemon is 98 not running, it is started. This command automatically checks the 99 configuration files as in <code>configtest</code> before initiating 100 the restart to make sure the daemon doesn't die. This is equivalent 101 to <code>apachectl -k restart</code>.</dd> 102 103 <dt><code>fullstatus</code></dt> 104 105 <dd>Displays a full status report from <code class="module"><a href="../mod/mod_status.html">mod_status</a></code>. 106 For this to work, you need to have <code class="module"><a href="../mod/mod_status.html">mod_status</a></code> enabled 107 on your server and a text-based browser such as <code>lynx</code> 108 available on your system. The URL used to access the status report 109 can be set by editing the <code>STATUSURL</code> variable in the 110 script.</dd> 111 112 <dt><code>status</code></dt> 113 114 <dd>Displays a brief status report. Similar to the 115 <code>fullstatus</code> option, except that the list of requests 116 currently being served is omitted.</dd> 117 118 <dt><code>graceful</code></dt> 119 120 <dd>Gracefully restarts the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon. If the 121 daemon is not running, it is started. This differs from a normal 122 restart in that currently open connections are not aborted. A side 123 effect is that old log files will not be closed immediately. This 124 means that if used in a log rotation script, a substantial delay may 125 be necessary to ensure that the old log files are closed before 126 processing them. This command automatically checks the configuration 127 files as in <code>configtest</code> before initiating the 128 restart to make sure Apache doesn't die. This is equivalent to 129 <code>apachectl -k graceful</code>.</dd> 130 131 <dt><code>graceful-stop</code></dt> 132 133 <dd>Gracefully stops the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon. 134 This differs from a normal stop in that currently open connections are not 135 aborted. A side effect is that old log files will not be closed immediately. 136 This is equivalent to <code>apachectl -k graceful-stop</code>.</dd> 137 138 <dt><code>configtest</code></dt> 139 140 <dd>Run a configuration file syntax test. It parses the configuration 141 files and either reports <code>Syntax Ok</code> 142 or detailed information about the particular syntax error. This is 143 equivalent to <code>apachectl -t</code>.</dd> 144 145 </dl> 146 147 <p>The following option was available in earlier versions but has been removed.</p> 148 149 <dl> 150 151 <dt><code>startssl</code></dt> 152 153 <dd>To start <code class="program"><a href="../programs/httpd.html">httpd</a></code> with SSL support, you should edit 154 your configuration file to include the relevant directives and then 155 use the normal <code>apachectl start</code>.</dd> 156 157 </dl> 158 159 </div></div> 160 <div class="bottomlang"> 161 <p><span>Available Languages: </span><a href="../en/programs/apachectl.html" title="English"> en </a> | 162 <a href="../ko/programs/apachectl.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 163 <a href="../tr/programs/apachectl.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 164 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 165 <script type="text/javascript"><!--//--><![CDATA[//><!-- 166 var comments_shortname = 'httpd'; 167 var comments_identifier = 'http://httpd.apache.org/docs/2.2/programs/apachectl.html'; 168 (function(w, d) { 169 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 170 d.write('<div id="comments_thread"><\/div>'); 171 var s = d.createElement('script'); 172 s.type = 'text/javascript'; 173 s.async = true; 174 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 175 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 176 } 177 else { 178 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 179 } 180 })(window, document); 181 //--><!]]></script></div><div id="footer"> 182 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> 183 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 184 if (typeof(prettyPrint) !== 'undefined') { 185 prettyPrint(); 186 } 187 //--><!]]></script> 188 </body></html>