我在 Windows 7x64 上安装了 EasyPHP 12.1(最新版本),并尝试启用mod_fcgid
PHP。我已在我的httpd.conf
Include conf/extra/httpd-vhosts.conf
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "C:\progra~2\EasyPHP-12.1\php\php546x121028092509"
AddHandler fcgid-script .php
FcgidWrapper "C:\progra~2\EasyPHP-12.1\php\php546x121028092509/php-cgi.exe" .php
及Options ExecCGI Indexes FollowSymLinks
以下<Directory "${path}/www">
我已确保所有路径均良好,并将整个路径C:\progra~2\EasyPHP-12.1
和我的www
根路径的权限设置为Everyone - Allow All
。
然而,我的所有服务器(localhost)请求仍然得到 403。此外,Apache/2.4.2 (Win32) PHP/5.4.6 mod_fcgid/2.3.7
我知道mod_fcgid 已启用并导致 403。
注释掉上面的几行可以httpd.conf
让它再次工作,但速度比死还慢(这就是我想要 mod_fcgid 的原因)。我可能做错了什么?
编辑::错误日志
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Nov 05 23:00:38.244339 2012] [mpm_winnt:notice] [pid 7072:tid 512] AH00455: Apache/2.4.2 (Win32) PHP/5.4.6 mod_fcgid/2.3.7 configured -- resuming normal operations
[Mon Nov 05 23:00:38.245339 2012] [mpm_winnt:notice] [pid 7072:tid 512] AH00456: Server built: Apr 20 2012 19:24:55
[Mon Nov 05 23:00:38.245339 2012] [core:notice] [pid 7072:tid 512] AH00094: Command line: 'C:\\PROGRA~2\\EASYPH~1.1\\Apache\\bin\\apache.exe -d C:/Program Files (x86)/EasyPHP-12.1/apache'
[Mon Nov 05 23:00:38.264340 2012] [mpm_winnt:notice] [pid 7072:tid 512] AH00418: Parent: Created child process 8184
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Nov 05 23:00:39.525412 2012] [mpm_winnt:notice] [pid 8184:tid 524] AH00354: Child: Starting 64 worker threads.