mod_cgid.html.en revision 136489fb8f0fe36dbcad3064a335eb86bfbeb5c6
06ba4a61654b3763ad65f52283832ebf058fdf1cslive<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
06ba4a61654b3763ad65f52283832ebf058fdf1cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
06ba4a61654b3763ad65f52283832ebf058fdf1cslive This file is generated from xml source: DO NOT EDIT
06ba4a61654b3763ad65f52283832ebf058fdf1cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
06ba4a61654b3763ad65f52283832ebf058fdf1cslive --><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 valign="top"><span class="help">Description:</span></td><td>Execution of CGI scripts using an
06ba4a61654b3763ad65f52283832ebf058fdf1cslive external CGI daemon</td></tr><tr><td><a href="module-dict.html#Status" class="help">Status:</a></td><td>Base</td></tr><tr><td><a href="module-dict.html#ModuleIdentifier" class="help">Module&nbsp;Identifier:</a></td><td>cgid_module</td></tr><tr><td align="left" valign="top"><a href="module-dict.html#Compatibility" class="help">Compatibility:</a></td><td><compatibility>Unix threaded MPMs only</compatibility></td></tr></table></td></tr></table><h2>Summary</h2>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>Except for the optimizations and the additional <a href="#scriptsock" class="directive"><code class="directive">ScriptSock</code></a> directive noted below,
06ba4a61654b3763ad65f52283832ebf058fdf1cslive mod_cgid behaves similarly to mod_cgi. <strong>See the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code><a href="mod_cgi.html">mod_cgi</a></code> Summary for additional details about
06ba4a61654b3763ad65f52283832ebf058fdf1cslive Apache and CGI.</strong></p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>On certain unix operating systems, forking a process from a
06ba4a61654b3763ad65f52283832ebf058fdf1cslive multi-threaded server is a very expensive operation because the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive new process will replicate all the threads of the parent
06ba4a61654b3763ad65f52283832ebf058fdf1cslive process. In order to avoid incurring this expense on each CGI
06ba4a61654b3763ad65f52283832ebf058fdf1cslive invocation, mod_cgid creates an external daemon that is
06ba4a61654b3763ad65f52283832ebf058fdf1cslive responsible for forking child processes to run CGI scripts. The
06ba4a61654b3763ad65f52283832ebf058fdf1cslive main server communicates with this daemon using a unix domain
06ba4a61654b3763ad65f52283832ebf058fdf1cslive socket.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
136489fb8f0fe36dbcad3064a335eb86bfbeb5c6rbowen <p>This module is used by default instead of
136489fb8f0fe36dbcad3064a335eb86bfbeb5c6rbowen <code><a href="mod_cgi.html">mod_cgi</a></code> whenever a multi-threaded MPM
06ba4a61654b3763ad65f52283832ebf058fdf1cslive is selected during the compilation process. At the user level,
06ba4a61654b3763ad65f52283832ebf058fdf1cslive this module is identical in configuration and operation to
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code><a href="mod_cgi.html">mod_cgi</a></code>. The only exception is the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive additional directive <code>ScriptSock</code> which gives the
06ba4a61654b3763ad65f52283832ebf058fdf1cslive name of the socket to use for communication with the cgi
06ba4a61654b3763ad65f52283832ebf058fdf1cslive daemon.</p>
5bf90772244e08b493f008381645dd3704417d40yoshiki<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: </strong></td><td/></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td>ScriptSock <em>file-path</em></td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>ScriptSock logs/cgisock</code></td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Base</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_cgid</td></tr></table></td></tr></table>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>This directive sets the name of the socket to use for
06ba4a61654b3763ad65f52283832ebf058fdf1cslive communication with the CGI daemon. The socket will be opened
06ba4a61654b3763ad65f52283832ebf058fdf1cslive 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<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>