mod_cgid.html revision 1319d315ae7b55c02ea1cfb4c6843c04059bca76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Apache module mod_cgi</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<!--#include virtual="header.html" -->
<h1 align="CENTER">Module mod_cgid</h1>
<p>This module provides for execution of CGI scripts using an
external CGI daemon.</p>
rel="Help"><strong>Status:</strong></a> Base (unix threaded
MPMs only)<br />
<a href="module-dict.html#SourceFile"
<a href="module-dict.html#ModuleIdentifier"
rel="Help"><strong>Module Identifier:</strong></a>
cgid_module</p>
<h2>Summary</h2>
<p>Except for the optimizations and the additional ScriptSock
directive noted below, mod_cgid behaves similarly to mod_cgi.
for additional details about Apache and CGI.</strong></p>
<p>On certain unix operating systems, forking a process from a
multi-threaded server is a very expensive operation because the
new process will replicate all the threads of the parent
process. In order to avoid incurring this expense on each CGI
invocation, mod_cgid creates an external daemon that is
responsible for forking child processes to run CGI scripts. The
main server communicates with this daemon using a unix domain
socket.</p>
<p>This module is used by default whenever a multi-threaded MPM
is selected during the compilation process. At the user level,
this module is identical in configuration and operation to <a
href="mod_cgi.html">mod_cgi</a>. The only exception is the
additional directive <code>ScriptSock</code> which gives the
name of the socket to use for communication with the cgi
daemon.</p>
<h2>Directives</h2>
<ul>
<li><a
<li><a
<li><a href="#scriptsock">ScriptSock</a></li>
</ul>
<hr />
<h3><a id="scriptsock" name="scriptsock">ScriptSock</a>
directive</h3>
rel="Help"><strong>Syntax:</strong></a> Scriptsock
<em>filename</em><br />
<a href="directive-dict.html#Default"
<a href="directive-dict.html#Context"
rel="Help"><strong>Context:</strong></a> server config<br />
<a href="directive-dict.html#Status"
rel="Help"><strong>Status:</strong></a> Base<br />
<a href="directive-dict.html#Module"
rel="Help"><strong>Module:</strong></a> mod_cgid</p>
<p>This directive sets the name of the socket to use for
communication with the CGI daemon. The socket will be opened
using the permissions of the user who starts Apache (usually
root). To maintain the security of communications with CGI
scripts, it is important that no other user has permission to
write in the directory where the socket is located.</p>
<!--#include virtual="footer.html" -->
</body>
</html>