Blob Blame History Raw
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>The mod_fcgid Home Page</title>
</head>

<body>

<p><b><a name="regular fastcgi"></a>This is a for regular fastcgi.&nbsp;</b><p>LoadModule fcgid_module              
modules/mod_fcgid.so<p>
&lt;Location /fcgid><br>            
&nbsp;&nbsp;&nbsp; SetHandler fcgid-script<br>            
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>            
&nbsp;&nbsp;&nbsp; allow from all<br>            
&lt;/Location&gt;<p>
&nbsp;
<hr>
<p><b><a name="suEXEC"></a>This is for suEXEC. Please get more information about suEXEC <a href="http://httpd.apache.org/docs-2.0/suexec.html">here</a>.&nbsp;</b><p>LoadModule fcgid_module               
modules/mod_fcgid.so<p>
&lt;Location /fcgid&gt;<br>            
&nbsp;&nbsp;&nbsp; SetHandler fcgid-script<br>            
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>            
&nbsp;&nbsp;&nbsp; allow from all<br>            
&lt;/Location&gt;<p>
&lt;VirtualHost 192.168.1.89><br>            
&nbsp;&nbsp;&nbsp; ServerAdmin <a href="mailto:webmaster@host.foo.com">webmaster@host.foo.com<br>           
</a>&nbsp;&nbsp;&nbsp; DocumentRoot /usr/local/apache2/htdocs/<br>            
&nbsp;&nbsp;&nbsp; ServerName host.foo.com<br>            
&nbsp;&nbsp;&nbsp; SuexecUserGroup pqf pqf<br>            
&lt;/VirtualHost&gt;<p>
 
<hr>
<p><b><a name="PHP"></a>This is for fastcgi-mode PHP (UNIX)</b><p>LoadModule fcgid_module modules/mod_fcgid.so<p>     
&lt;Directory /usr/local/apache2/htdocs/php><br>            
&nbsp;&nbsp;&nbsp; SetHandler fcgid-script<br>            
&nbsp;&nbsp;&nbsp; FCGIWrapper /usr/local/bin/php .php<br>            
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>            
&nbsp;&nbsp;&nbsp; allow from all<br>            
&lt;/Directory><p><b>This works too:</b><p>LoadModule fcgid_module            
modules/mod_fcgid.so&nbsp;<p>
AddHandler fcgid-script .php<br>           
&lt;Directory /usr/local/apache2/htdocs/php&gt;<br>            
&nbsp;&nbsp;&nbsp; FCGIWrapper /usr/local/bin/php .php<br>            
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>            
&nbsp;&nbsp;&nbsp; allow from all<br>            
&lt;/Directory&gt;<p><b># Please make sure:<br>    
# php is configured with --enable-fastcgi option<br>    
# check error_log(with debug level), if  
any thing goes wrong</b> 
<hr>
<p><b><a name="suPHP"></a>This is for suPHP&nbsp; ( UNIX )</b>         
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>       
<br>
&lt;VirtualHost *:80><br>       
&nbsp;&nbsp;&nbsp; ServerName test2.example.com<br>       
&nbsp;&nbsp;&nbsp; DocumentRoot /usr/local/apache2/htdocs/test2.example.com/<br>       
&nbsp;&nbsp;&nbsp; SuexecUserGroup pqf pqf<br>       
&lt;/VirtualHost><br>
<br>
&lt;Directory /usr/local/apache2/htdocs/test2.example.com/><br>       
&nbsp;&nbsp;&nbsp; AddHandler fcgid-script .php<br>       
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>       
&nbsp;&nbsp;&nbsp; allow from all<br>       
&nbsp;&nbsp;&nbsp; FCGIWrapper /usr/local/apache2/htdocs/test2.example.com/php .php<br>       
&lt;/Directory></p>
<p>   
<b>   
# Please make sure:<br>    
# php is configured with --enable-fastcgi option<br>    
# copy php execution to /usr/local/apache2/htdocs/test2.example.com/ directory<br>    
# make sure all files in /usr/local/apache2/htdocs/test2.example.com/ with right 
owner and group<br> 
# check error_log(with debug level) and suexec_log, if  
any thing goes wrong</b>    
<br>

<hr>
<p><br>
<b><a name="PHP-Windows"></a>This is for fastcgi-mode PHP ( Windows )</b><p>LoadModule fcgid_module modules/mod_fcgid.so<p>     
&lt;Directory &quot;C:/Apache2/htdocs/php/&quot;&gt;<br>     
&nbsp;&nbsp;&nbsp; SetHandler fcgid-script<br>     
&nbsp;&nbsp;&nbsp; Options execCGI<br>     
&nbsp;&nbsp;&nbsp; AllowOverride None<br>     
&nbsp;&nbsp;&nbsp; Order allow,deny<br>     
&nbsp;&nbsp;&nbsp; Allow from all<br>     
&nbsp;&nbsp;&nbsp; FCGIWrapper &quot;c:/php/php.exe&quot; .php<br>     
&lt;/Directory><p><b>This works too:</b><p>LoadModule fcgid_module modules/mod_fcgid.so&nbsp;<p>   
AddHandler fcgid-script .php<br>   
&lt;Directory &quot;C:/Apache2/htdocs/php/&quot;&gt;<br>    
&nbsp;&nbsp;&nbsp; FCGIWrapper &quot;c:/php/php.exe&quot; .php<br>    
&nbsp;&nbsp;&nbsp; Options ExecCGI<br>    
&nbsp;&nbsp;&nbsp; allow from all<br>    
&lt;/Directory&gt;<br>

<hr>
<p><b><a name="Authenticator"></a>This is for Authenticator</b></p>  
<p>LoadModule fcgid_module modules/mod_fcgid.so
<p>&lt;Location /fcgid><br> 
    SetHandler fcgid-script<br> 
    Options ExecCGI<br> 
    allow from all<br> 
    AuthType Basic<br> 
    AuthName ProtectedRealm<br> 
    FastCgiAuthenticator /some/path/authenticator<br> 
    require valid-user<br> 
&lt;/Location><br>
</p>
<p><b>Another configuration: <a name="FastCgiAuthenticatorAuthoritative">FastCgiAuthenticatorAuthoritative</a> 
(default On)</b></p>
<p>Setting the <code>FastCgiAuthenticatorAuthoritative</code> directive 
explicitly to <em>Off</em> allows authentication to be passed on to lower level 
modules</p>

<hr>
<p><b><a name="Authorizer"></a>This is for Authorizer</b></p>  

<p>LoadModule fcgid_module modules/mod_fcgid.so
<p>&lt;Location /fcgid><br> 
    SetHandler fcgid-script<br> 
    Options ExecCGI<br> 
    allow from all<br> 
    AuthType Basic<br> 
    AuthName ProtectedRealm<br> 
    FastCgiAuthorizer /some/place/Authorizer<br> 
&lt;/Location></p>

<p><b>Another configuration: <a name="FastCgiAuthorizerAuthoritative">FastCgiAuthorizerAuthoritative</a> 
(default On)</b></p>

<p>Setting the <code>FastCgiAuthorizerAuthoritative</code> directive explicitly 
to <em>Off</em> allows authorization to be passed on to lower level modules</p>

<hr>
<p><b><a name="AccessChecker"></a>This is for AccessChecker</b></p>  
<p>LoadModule fcgid_module modules/mod_fcgid.so
<p>&lt;Location /fcgid><br> 
    SetHandler fcgid-script<br> 
    Options ExecCGI<br> 
    allow from all<br> 
    FastCgiAccessChecker /some/place/access-checker<br> 
&lt;/Location><br>
</p>
<p><b>Another configuration: </b><a name="FastCgiAccessCheckerAuthoritative"><b>FastCgiAccessCheckerAuthoritative</b></a><b> 
(default On)</b></p>
<p>Setting the <code>FastCgiAccessCheckerAuthoritative</code> directive 
explicitly to <em>Off</em> allows access checking to be passed on to lower level 
modules</p>
<p> </p>
<p> </p>

<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>

</body>

</html>