112 lines
4.4 KiB
HTML
112 lines
4.4 KiB
HTML
<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. </b><p>LoadModule fcgid_module
|
|
modules/mod_fcgid.so<p>
|
|
<Location /fcgid><br>
|
|
SetHandler fcgid-script<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
</Location><p>
|
|
|
|
<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>. </b><p>LoadModule fcgid_module
|
|
modules/mod_fcgid.so<p>
|
|
<Location /fcgid><br>
|
|
SetHandler fcgid-script<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
</Location><p>
|
|
<VirtualHost 192.168.1.89><br>
|
|
ServerAdmin <a href="mailto:webmaster@host.foo.com">webmaster@host.foo.com<br>
|
|
</a> DocumentRoot /usr/local/apache2/htdocs/<br>
|
|
ServerName host.foo.com<br>
|
|
SuexecUserGroup pqf pqf<br>
|
|
</VirtualHost><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>
|
|
<Directory /usr/local/apache2/htdocs/php><br>
|
|
SetHandler fcgid-script<br>
|
|
FCGIWrapper /usr/local/bin/php .php<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
</Directory><p><b>This works too:</b><p>LoadModule fcgid_module
|
|
modules/mod_fcgid.so <p>
|
|
AddHandler fcgid-script .php<br>
|
|
<Directory /usr/local/apache2/htdocs/php><br>
|
|
FCGIWrapper /usr/local/bin/php .php<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
</Directory><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 ( UNIX )</b>
|
|
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>
|
|
<br>
|
|
<VirtualHost *:80><br>
|
|
ServerName test2.example.com<br>
|
|
DocumentRoot /usr/local/apache2/htdocs/test2.example.com/<br>
|
|
SuexecUserGroup pqf pqf<br>
|
|
</VirtualHost><br>
|
|
<br>
|
|
<Directory /usr/local/apache2/htdocs/test2.example.com/><br>
|
|
AddHandler fcgid-script .php<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
FCGIWrapper /usr/local/apache2/htdocs/test2.example.com/php .php<br>
|
|
</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>
|
|
<Directory "C:/Apache2/htdocs/php/"><br>
|
|
SetHandler fcgid-script<br>
|
|
Options execCGI<br>
|
|
AllowOverride None<br>
|
|
Order allow,deny<br>
|
|
Allow from all<br>
|
|
FCGIWrapper "c:/php/php.exe" .php<br>
|
|
</Directory><p><b>This works too:</b><p>LoadModule fcgid_module modules/mod_fcgid.so <p>
|
|
AddHandler fcgid-script .php<br>
|
|
<Directory "C:/Apache2/htdocs/php/"><br>
|
|
FCGIWrapper "c:/php/php.exe" .php<br>
|
|
Options ExecCGI<br>
|
|
allow from all<br>
|
|
</Directory><br>
|
|
|
|
<hr>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
<p>¡¡</p>
|
|
|
|
</body>
|
|
|
|
</html>
|