mod_cgid.html revision e0b181d3bfa99dfb992df3024b397660cb7afbe9
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa This file is generated from xml source: DO NOT EDIT
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger --><title>mod_cgid- Apache HTTP Server</title><link rel="stylesheet" type="text/css" href="/style/manual.css"/></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 bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td><table bgcolor="#ffffff"><tr><td valign="top"><span class="help">Description:</span></td><td>Execution of CGI scripts using an
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger external CGI daemon</td></tr><tr><td><a class="help" href="module-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module Identifier:</a></td><td>cgid_module</td></tr><tr><td valign="top" align="left"><a class="help" href="module-dict.html#Compatibility">Compatibility:</a></td><td><compatibility>Unix threaded MPMs only</compatibility></td></tr></table></td></tr></table><h2>Summary</h2>
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa <p>Except for the optimizations and the additional <a class="directive" href="#scriptsock"><code class="directive">ScriptSock</code></a> directive noted below,
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger mod_cgid behaves similarly to mod_cgi. <strong>See the
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa <code><a href="mod_cgi.html">mod_cgi</a></code> Summary for additional details about
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa <p>On certain unix operating systems, forking a process from a
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa multi-threaded server is a very expensive operation because the
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa new process will replicate all the threads of the parent
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa process. In order to avoid incurring this expense on each CGI
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa invocation, mod_cgid creates an external daemon that is
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa responsible for forking child processes to run CGI scripts. The
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger main server communicates with this daemon using a unix domain
a1dfa680e0ec6ac58a9a999def342fd3cd4a3a0aEugen Kuksa <p>This module is used by default whenever a multi-threaded MPM
a1dfa680e0ec6ac58a9a999def342fd3cd4a3a0aEugen Kuksa is selected during the compilation process. At the user level,
a1dfa680e0ec6ac58a9a999def342fd3cd4a3a0aEugen Kuksa this module is identical in configuration and operation to
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger <code><a href="mod_cgi.html">mod_cgi</a></code>. The only exception is the
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger additional directive <code>ScriptSock</code> which gives the
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger name of the socket to use for communication with the cgi
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger<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 bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td/></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>ScriptSock <em>file-path</em></td></tr><tr><td><a class="help" href="directive-dict.html#Default">Default:</a></td><td><code>ScriptSock logs/cgisock</code></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_cgid</td></tr></table></td></tr></table>
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger <p>This directive sets the name of the socket to use for
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa communication with the CGI daemon. The socket will be opened
3bba6fbf5fce9f7d72b39197fde41b9db2d4f9b5Eugen Kuksa using the permissions of the user who starts Apache (usually
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger root). To maintain the security of communications with CGI
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger scripts, it is important that no other user has permission to
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger write in the directory where the socket is located.</p>
2725ada6b2a776abaadd22b0006097eae9ba2b02Julian Kornberger<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>