1
我在Windows XP上使用Apache 2.4.4。在試圖運行CGI腳本時,瀏覽器給出 「500內部服務器錯誤」,我試圖通過查看各種論壇後解決,但沒有運氣遠 我的httpd.conf文件如下:在Apache中運行CGI腳本
<IfModule alias_module>
ScriptAlias /cgi-bin/ "D:/config/apache/cgi-bin/"
</IfModule>
<IfModule cgid_module>
#Scriptsock cgisock
</IfModule>
<Directory "D:/config/apache/cgi-bin/">
AllowOverride All
Options Includes ExecCGI
Order allow,deny
Allow from all
Require all granted
</Directory>
我還錯誤日誌看了看,這就是問題所在:
[win32:error] [pid 3824:tid 1216] [client 192.168.1.4:1728] AH02102: D:/config/apache/cgi-bin/printenv.pl is not executable; ensure interpreted scripts have "#!" or "'!" first line
[cgi:error] [pid 3824:tid 1216] (9)Bad file descriptor: [client 192.168.1.4:1728] AH01222: don't know how to spawn child process: D:/config/apache/cgi-bin/printenv.pl
請,任何幫助高度Apreciated。 在此先感謝