windows 下apache 以fastcgi形式运行php
LoadModule fcgid_module modules/mod_fcgid.so
#FcgidInitialEnv PHPRC "c:/xampp/php"<IfModule fcgid_module>
FcgidIOTimeout 60
FcgidConnectTimeout 30
FcgidMaxProcesses 8
FcgidOutputBufferSize 64
ProcessLifeTime 240
FcgidMaxRequestsPerProcess 500
FcgidMinProcessesPerClass 0
Options ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "C:/xampp/php/php-cgi.exe" .php
</IfModule>
4:虚拟主机配置文件
<VirtualHost *:80>
ServerAdmin admin@163.com
DocumentRoot "d:/mywork/www"
ServerName test.hdjr.com
<Directory "d:/mywork/www"> // 这里是项目的目录
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from 127.0.0.1
</Directory>
</VirtualHost>
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/70349.html