我在Windows 7×64上安装了EasyPHP 12.1(最新版本),我试图为PHP启用mod_fcgid 。 我在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">
我已经确定path都很好,并在整个C:\progra~2\EasyPHP-12.1上设置权限,并将我的www root权限设置为Everyone - Allow All 。
然而,我仍然得到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.