mod_cgid.html.en revision 3ffe84681ed8add175b7b33f1985d9db941eccaf
97a9a944b5887e91042b019776c41d5dd74557aferikabele<?xml version="1.0" encoding="ISO-8859-1"?>
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
fe64b2ba25510d8c9dba5560a2d537763566cf40nd -->
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<title>mod_cgid - Apache HTTP Server</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" />
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<body>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="page-header">
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<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>
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz<p class="apache">Apache HTTP Server Version 2.3</p>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<img alt="" src="/images/feather.gif" /></div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="path">
4b5981e276e93df97c34e4da05ca5cf8bbd937dand<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.3</a> &gt; <a href="./">Modules</a></div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="page-content">
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="preamble"><h1>Apache Module mod_cgid</h1>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<div class="toplang">
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/en/mod/mod_cgid.html" title="English">&nbsp;en&nbsp;</a> |
4cf7cf20e77128a5b75ab519e2db0286b24fef68yoshiki<a href="/ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd</div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Execution of CGI scripts using an
fe64b2ba25510d8c9dba5560a2d537763566cf40nd external CGI daemon</td></tr>
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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<h3>Summary</h3>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd
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
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd about 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
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>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<div id="quickview"><h3 class="directives">Directives</h3>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<ul id="toc">
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</ul>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<h3>See also</h3>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<ul class="seealso">
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
9bcfc3697a91b5215893a7d0206865b13fc72148nd user IDs</a></li>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</ul></div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd
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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<table class="directive">
75241911a05371c31eb43e91cd40645a905408cccolm<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>The filename prefix of the socket to use for communication with
fe64b2ba25510d8c9dba5560a2d537763566cf40ndthe cgi daemon</td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ScriptSock <var>file-path</var></code></td></tr>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>ScriptSock logs/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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</table>
75241911a05371c31eb43e91cd40645a905408cccolm <p>This directive sets the filename prefix of the socket to use for
75241911a05371c31eb43e91cd40645a905408cccolm communication with the CGI daemon, an extension correspondening 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>
f2c4476994729750806eaa70d8b55fa2b3eba25brbowen
97a9a944b5887e91042b019776c41d5dd74557aferikabele <div class="example"><h3>Example</h3><p><code>
f67d046f3809f2659fa2b9842ca17ff87a1f01c4nd ScriptSock /var/run/cgid.sock
97a9a944b5887e91042b019776c41d5dd74557aferikabele </code></p></div>
f2c4476994729750806eaa70d8b55fa2b3eba25brbowen
fe64b2ba25510d8c9dba5560a2d537763566cf40nd
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</div>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</div>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<div class="bottomlang">
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/en/mod/mod_cgid.html" title="English">&nbsp;en&nbsp;</a> |
4cf7cf20e77128a5b75ab519e2db0286b24fef68yoshiki<a href="/ja/mod/mod_cgid.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ko/mod/mod_cgid.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd</div><div id="footer">
4b22542f6f38567cae7873b176188a6622f67eb0fielding<p class="apache">Copyright 2006 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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd<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>
fe64b2ba25510d8c9dba5560a2d537763566cf40nd</body></html>