mod_cgid.html.en revision a945f35eff8b6a88009ce73de6d4c862ce58de3c
97a9a944b5887e91042b019776c41d5dd74557aferikabele<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
97a9a944b5887e91042b019776c41d5dd74557aferikabele XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
97a9a944b5887e91042b019776c41d5dd74557aferikabele This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive --><title>mod_cgid - Apache HTTP Server</title><link href="/style/manual.css" type="text/css" rel="stylesheet"/></head><body><blockquote><div align="center"><img src="/images/sub.gif" alt="[APACHE DOCUMENTATION]"/><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_cgid</h1><table cellspacing="1" cellpadding="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap" valign="top"><span class="help">Description:
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive </span></td><td>Execution of CGI scripts using an
fe64b2ba25510d8c9dba5560a2d537763566cf40nd external CGI daemon</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#Status" class="help">Status:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td>Base</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#ModuleIdentifier" class="help">Module&nbsp;Identifier:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td>cgid_module</td></tr><tr><td align="left" valign="top"><a href="module-dict.html#Compatibility" class="help">Compatibility:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td><compatibility>Unix threaded MPMs only</compatibility></td></tr></table></td></tr></table><h2>Summary</h2>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen <p>Except for the optimizations and the additional <a href="#scriptsock" class="directive"><code class="directive">ScriptSock</code></a> directive noted below,
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen mod_cgid behaves similarly to mod_cgi. <strong>See the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen <code><a href="/mod/mod_cgi.html">mod_cgi</a></code> Summary for additional details about
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen Apache and CGI.</strong></p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>On certain unix operating systems, forking a process from a
fe64b2ba25510d8c9dba5560a2d537763566cf40nd multi-threaded server is a very expensive operation because the
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen new process will replicate all the threads of the parent
3f08db06526d6901aa08c110b5bc7dde6bc39905nd process. In order to avoid incurring this expense on each CGI
fe64b2ba25510d8c9dba5560a2d537763566cf40nd invocation, mod_cgid creates an external daemon that is
fe64b2ba25510d8c9dba5560a2d537763566cf40nd responsible for forking child processes to run CGI scripts. The
fe64b2ba25510d8c9dba5560a2d537763566cf40nd main server communicates with this daemon using a unix domain
3f08db06526d6901aa08c110b5bc7dde6bc39905nd socket.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd
fe64b2ba25510d8c9dba5560a2d537763566cf40nd <p>This module is used by default instead of
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <code><a href="/mod/mod_cgi.html">mod_cgi</a></code> whenever a multi-threaded MPM
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd is selected during the compilation process. At the user level,
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd this module is identical in configuration and operation to
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung <code><a href="/mod/mod_cgi.html">mod_cgi</a></code>. The only exception is the
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd additional directive <code>ScriptSock</code> which gives the
fe64b2ba25510d8c9dba5560a2d537763566cf40nd name of the socket to use for communication with the cgi
fe64b2ba25510d8c9dba5560a2d537763566cf40nd daemon.</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<h2>Directives</h2><ul><li><a href="mod_cgi.html#scriptlog">ScriptLog</a></li><li><a href="mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></li><li><a href="mod_cgi.html#scriptloglength">ScriptLogLength</a></li><li><a href="#scriptsock">ScriptSock</a></li></ul><hr/><h2><a name="ScriptSock">ScriptSock</a> <a name="scriptsock">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap"><strong>Description:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </strong></td><td/></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Syntax" class="help">Syntax:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td>ScriptSock <em>file-path</em></td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Default" class="help">Default:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td><code>ScriptSock logs/cgisock</code></td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Context" class="help">Context:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td>server config</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Status" class="help">Status:
fe64b2ba25510d8c9dba5560a2d537763566cf40nd </a></td><td>Base</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Module" class="help">Module:
97a9a944b5887e91042b019776c41d5dd74557aferikabele </a></td><td>mod_cgid</td></tr></table></td></tr></table>
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd <p>This directive sets the name of the socket to use for
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd communication with the CGI daemon. The socket will be opened
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd using the permissions of the user who starts Apache (usually
06ba4a61654b3763ad65f52283832ebf058fdf1cslive root). To maintain the security of communications with CGI
06ba4a61654b3763ad65f52283832ebf058fdf1cslive scripts, it is important that no other user has permission to
06ba4a61654b3763ad65f52283832ebf058fdf1cslive write in the directory where the socket is located.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><p align="center"><strong>Example</strong></p><code>
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd ScriptSock /var/run/cgid.sock
06ba4a61654b3763ad65f52283832ebf058fdf1cslive </code></td></tr></table></blockquote>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
06ba4a61654b3763ad65f52283832ebf058fdf1cslive<hr/></blockquote><h3 align="center">Apache HTTP Server Version 2.0</h3><a href="./"><img src="/images/index.gif" alt="Index"/></a><a href="../"><img src="/images/home.gif" alt="Home"/></a></body></html>