
我在 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
.
但我仍然在所有伺服器(本地主機)請求上收到 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.