mod_cgid.html.en revision 96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7
97a9a944b5887e91042b019776c41d5dd74557aferikabele<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
97a9a944b5887e91042b019776c41d5dd74557aferikabele<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc<title>mod_cgid - Apache HTTP Server Version 2.5</title>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<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" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<script src="/style/scripts/prettify.min.js" type="text/javascript">
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<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.5</a> > <a href="./">Modules</a></div>
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/en/mod/mod_cgid.html" title="English"> en </a> |
660c7c6d7e175238807ffc144c0f8e746bf2cfb0minfrin<a href="/fr/mod/mod_cgid.html" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd<a href="/ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Execution of CGI scripts using an
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>cgid_module</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_cgid.c</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="module-dict.html#Compatibility">Compatibility:</a></th><td>Unix threaded MPMs only</td></tr></table>
97a9a944b5887e91042b019776c41d5dd74557aferikabele <p>Except for the optimizations and the additional <code class="directive"><a href="#scriptsock">ScriptSock</a></code> directive noted below,
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd <code class="module"><a href="/mod/mod_cgid.html">mod_cgid</a></code> behaves similarly to <code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code>.
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd <strong>See the <code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code> summary for additional details
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
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd invocation, <code class="module"><a href="/mod/mod_cgid.html">mod_cgid</a></code> 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>
136489fb8f0fe36dbcad3064a335eb86bfbeb5c6rbowen <p>This module is used by default instead of
97a9a944b5887e91042b019776c41d5dd74557aferikabele <code class="module"><a href="/mod/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
97a9a944b5887e91042b019776c41d5dd74557aferikabele <code class="module"><a href="/mod/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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="quickview"><h3 class="directives">Directives</h3>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<li><img alt="" src="/images/down.gif" /> <a href="#cgidscripttimeout">CGIDScriptTimeout</a></li>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<li><img alt="" src="/images/right.gif" /> <a href="mod_cgi.html#scriptlog">ScriptLog</a></li>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd<li><img alt="" src="/images/right.gif" /> <a href="mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></li>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd<li><img alt="" src="/images/right.gif" /> <a href="mod_cgi.html#scriptloglength">ScriptLogLength</a></li>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd<li><img alt="" src="/images/down.gif" /> <a href="#scriptsock">ScriptSock</a></li>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<li><code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code></li>
9bcfc3697a91b5215893a7d0206865b13fc72148nd<li><a href="/suexec.html">Running CGI programs under different
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<div class="directive-section"><h2><a name="CGIDScriptTimeout" id="CGIDScriptTimeout">CGIDScriptTimeout</a> <a name="cgidscripttimeout" id="cgidscripttimeout">Directive</a></h2>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The length of time to wait for more output from the
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CGIDScriptTimeout <var>time</var>[s|ms]</code></td></tr>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>value of <code class="directive"><a href="/mod/core.html#timeout">Timeout</a></code> directive when
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_cgid</td></tr>
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton<tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>CGIDScriptTimeout defaults to zero in releases 2.4 and earlier
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton <p>This directive limits the length of time to wait for more output from
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton the CGI program. If the time is exceeded, the request and CGI are
a1ceb0cd0152edea3c72f4d9dcb352bae6ef273fjorton terminated.</p>
20f499565e77defe9dab24dd85c02f38a1175855nd <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">CGIDScriptTimeout 20</pre>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div class="directive-section"><h2><a name="ScriptSock" id="ScriptSock">ScriptSock</a> <a name="scriptsock" id="scriptsock">Directive</a></h2>
75241911a05371c31eb43e91cd40645a905408cccolm<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The filename prefix of the socket to use for communication with
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ScriptSock <var>file-path</var></code></td></tr>
bbe82c56451e415b93ac24e6ad928dcac01519e1humbedooh<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>ScriptSock cgisock</code></td></tr>
3ffe84681ed8add175b7b33f1985d9db941eccaftrawick<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_cgid</td></tr>
75241911a05371c31eb43e91cd40645a905408cccolm <p>This directive sets the filename prefix of the socket to use for
d8e53ebbaf8cdc872236a202b5a9fc9997348a34covener communication with the CGI daemon, an extension corresponding to
75241911a05371c31eb43e91cd40645a905408cccolm the process ID of the server will be appended. 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>
bbe82c56451e415b93ac24e6ad928dcac01519e1humbedooh <p>If <var>file-path</var> is not an absolute path, the location specified
bbe82c56451e415b93ac24e6ad928dcac01519e1humbedooh will be relative to the value of
bbe82c56451e415b93ac24e6ad928dcac01519e1humbedooh <code class="directive"><a href="/mod/core.html#defaultruntimedir">DefaultRuntimeDir</a></code>.</p>
20f499565e77defe9dab24dd85c02f38a1175855nd <div class="example"><h3>Example</h3><pre class="prettyprint lang-config">ScriptSock /var/run/cgid.sock</pre>
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/en/mod/mod_cgid.html" title="English"> en </a> |
660c7c6d7e175238807ffc144c0f8e746bf2cfb0minfrin<a href="/fr/mod/mod_cgid.html" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd<a href="/ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
727872d18412fc021f03969b8641810d8896820bhumbedooh</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>
727872d18412fc021f03969b8641810d8896820bhumbedoohvar comments_shortname = 'httpd';
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedoohvar comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_cgid.html';
0d0ba3a410038e179b695446bb149cce6264e0abnd(function(w, d) {
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread"><\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd var s = d.createElement('script');
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
0d0ba3a410038e179b695446bb149cce6264e0abnd (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd})(window, document);
07dc96d063d49299da433f84b5c5681da9bbdf68rbowen<p class="apache">Copyright 2014 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>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.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[//><!--
0d0ba3a410038e179b695446bb149cce6264e0abndif (typeof(prettyPrint) !== 'undefined') {
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd prettyPrint();