home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / apache / apache_2.0.45-win32-x86-no_ssl.msi / Data.Cab / F233026_httpd.html.en < prev    next >
Extensible Markup Language  |  2003-03-30  |  9KB  |  182 lines

  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.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>httpd - Apache Hypertext Transfer Protocol Server - Apache HTTP Server</title>
  9. <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
  10. <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
  11. <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body id="manual-page"><div id="page-header">
  14. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  15. <p class="apache">Apache HTTP Server Version 2.0</p>
  16. <img alt="" src="../images/feather.gif" /></div>
  17. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  18. <div id="path">
  19. <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>httpd - Apache Hypertext Transfer Protocol Server</h1>
  20.      <p><code>httpd</code> is the Apache HyperText Transfer Protocol
  21.      (HTTP) server program.  It is designed to be run as a standalone
  22.      daemon process. When used like this it will create a pool of
  23.      child processes or threads to handle requests.</p>
  24.  
  25.      <p>In general, <code>httpd</code> should not be invoked directly,
  26.      but rather should be invoked via <a href="apachectl.html">apachectl</a> on Unix-based systems or <a href="../platform/windows.html#winsvc">as a service on Windows NT,
  27.      2000 and XP</a> and <a href="../platform/windows.html#wincons">as
  28.      a console application on Windows 9x and ME</a>.</p>
  29. </div>
  30. <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li>
  31. <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li>
  32. </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><a href="apachectl.html">apachectl</a></li></ul></div>
  33. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  34. <div class="section">
  35. <h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
  36.  
  37.      <p><code><strong>httpd </strong>[ -<strong>d </strong><var>serverroot
  38.      </var>] [ -<strong>f </strong><var>config </var>] [ -<strong>C
  39.      </strong> <var>directive </var>] [ -<strong>c </strong>
  40.      <var>directive</var>] [ -<strong>D </strong> <var>parameter
  41.      </var>] [ -<strong>e </strong> <var>level</var> ] [ -<strong>E
  42.      </strong> <var>file</var> ] [ <strong>-k </strong>
  43.      <code>start|restart|graceful|stop</code> ] [ -<strong>R </strong>
  44.      <var>directory</var> ] [ -<strong>h </strong>] [ -<strong>l
  45.      </strong>] [ -<strong>L </strong>] [-<strong>S</strong>] [
  46.      -<strong>t </strong>] [ -<strong>v </strong>] [ -<strong>V
  47.      </strong>] [ -<strong>X </strong>]</code></p>
  48.  
  49.      <p>On <a href="../platform/windows.html">Win32 systems</a>, the
  50.      following additional arguments are available:</p>
  51.  
  52.      <p><code><strong>httpd </strong> [ -<strong>k </strong>
  53.      <code>install|config|uninstall</code> ] [ -<strong>n </strong>
  54.      <var>name</var> ] [ -<strong>w</strong> ]</code></p>
  55.  
  56. </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  57. <div class="section">
  58. <h2><a name="options" id="options">Options</a></h2>
  59.  
  60. <dl>
  61. <dt><code>-d <var>serverroot</var></code></dt>
  62.  
  63. <dd>Set the initial value for the <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> directive to
  64. <var>serverroot</var>.  This can be overridden by the ServerRoot
  65. directive in the configuration file. The default is
  66. <code>/usr/local/apache2</code>.</dd>
  67.  
  68. <dt><code>-f <var>config</var></code></dt>
  69.  
  70. <dd>Uses the directives in the file <var>config</var> on startup. If
  71. <var>config</var> does not begin with a /, then it is taken to be a
  72. path relative to the <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>. The default is
  73. <code>conf/httpd.conf</code>.</dd>
  74.  
  75. <dt><code>-k <code>start|restart|graceful|stop</code></code></dt>
  76.  
  77. <dd>Signals <code>httpd</code> to start, restart, or stop.  See <a href="../stopping.html">Stopping Apache</a> for more information.</dd>
  78.  
  79. <dt><code>-C <var>directive</var></code></dt>
  80.  
  81. <dd>Process the configuration <var>directive</var> before reading
  82. config files.</dd>
  83.  
  84. <dt><code>-c <var>directive</var></code></dt>
  85.  
  86. <dd>Process the configuration <var>directive</var> after reading config
  87. files.</dd>
  88.  
  89.  
  90. <dt><code>-D <var>parameter</var></code></dt>
  91.  
  92. <dd>Sets a configuration <var>parameter </var>which can be used with
  93. <code class="directive"><a href="../mod/core.html#ifdefine"><IfDefine></a></code> sections
  94. in the configuration files to conditionally skip or process
  95. commands at server startup and restart.</dd>
  96.  
  97. <dt><code>-e <var>level</var></code></dt>
  98.  
  99. <dd>Sets the <code class="directive"><a href="../mod/core.html#loglevel">LogLevel</a></code> to
  100. <var>level</var> during server startup.  This is useful for
  101. temporarily increasing the verbosity of the error messages to find
  102. problems during startup.</dd>
  103.  
  104. <dt><code>-E <var>file</var></code></dt>
  105.  
  106. <dd>Send error messages during server startup to <var>file</var>.</dd>
  107.  
  108. <dt><code>-R <var>directory</var></code></dt>
  109.  
  110. <dd>When the server is compiled using the <code>SHARED_CORE</code>
  111. rule, this specifies the <var>directory</var> for the shared
  112. object files.</dd>
  113.  
  114. <dt><code>-h</code></dt>
  115.  
  116. <dd>Output a short summary of available command line options.</dd>
  117.  
  118. <dt><code>-l</code></dt>
  119.  
  120. <dd>Output a list of modules compiled into the server.  This will
  121. <strong>not</strong> list dynamically loaded modules included using
  122. the <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> directive.</dd>
  123.  
  124. <dt><code>-L</code></dt>
  125.  
  126. <dd>Output a list of directives together with expected arguments and
  127. places where the directive is valid.</dd>
  128.  
  129. <dt><code>-S</code></dt>
  130.  
  131. <dd>Show the settings as parsed from the config file (currently only
  132. shows the virtualhost settings).</dd>
  133.  
  134. <dt><code>-t</code></dt>
  135.  
  136. <dd>Run syntax tests for configuration files only.  The program
  137. immediately exits after these syntax parsing with either a return code
  138. of 0 (Syntax OK) or return code not equal to 0 (Syntax Error).  If -D
  139. <var>DUMP</var>_<var>VHOSTS </var>is also set, details of the virtual host
  140. configuration will be printed.</dd>
  141.  
  142. <dt><code>-v</code></dt>
  143.  
  144. <dd>Print the version of <code>httpd</code>, and then exit.</dd>
  145.  
  146. <dt><code>-V</code></dt>
  147.  
  148. <dd>Print the version and build parameters of <code>httpd</code>, and
  149. then exit.</dd>
  150.  
  151. <dt><code>-X</code></dt>
  152.  
  153. <dd>Run httpd in debug mode.  Only one worker will be started and the
  154. server will not detach from the console.</dd>
  155.  
  156. </dl>
  157.  
  158. <p>The following arguments are available only on the <a href="../platform/windows.html">win32 platform</a>:</p>
  159.  
  160. <dl>
  161.  
  162. <dt><code>-k <code>install|config|uninstall</code></code></dt>
  163.  
  164. <dd>Install Apache as a Windows NT service; change startup options for
  165. the Apache service; and uninstall the Apache service.</dd>
  166.  
  167. <dt><code>-n <var>name</var></code></dt>
  168.  
  169. <dd>The <var>name</var> of the Apache service to signal.</dd>
  170.  
  171. <dt><code>-w</code></dt>
  172.  
  173. <dd>Hold the console window open on error so that the error message can 
  174. be read.</dd>
  175.  
  176. </dl>
  177.  
  178. </div></div>
  179. <div id="footer">
  180. <p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
  181. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  182. </body></html>