bentong
2001-09-29, 02:19 AM
我是用Apache+PHP+Perl+MySQL在Windows下架設的伺服器,
也修改了httpd.conf檔---> 把cgi-bin指到正確路徑, 並把option 設為ExecCGI可是當我在URL輸入 http://localhost/cgi-bin/test.cgi 作測試時
卻出現
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
---------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
後來我又在Linux CLE1.0下重新架設, 其結果還是一樣, 我檢查檔案屬性, 都開成777啦, 為何還是無法執行???
為了確定錯誤訊息在表達什麼,我故意輸入一個不存在的檔案:http://localhost/cgi-bin/not.cgi
結果出現:
404 找不到網頁
查詢的網頁可能已經移除、重新命名或者暫時無法使用。
-------------------------------------------------------------------------------
那就表示說先前apache可以定位到我的cgi-bin/test.cgi, 只是它無法執行 我還必須設定與perl有關的參數嗎??? 可是書上都沒提到說??
贊助商連結
也修改了httpd.conf檔---> 把cgi-bin指到正確路徑, 並把option 設為ExecCGI可是當我在URL輸入 http://localhost/cgi-bin/test.cgi 作測試時
卻出現
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
---------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
後來我又在Linux CLE1.0下重新架設, 其結果還是一樣, 我檢查檔案屬性, 都開成777啦, 為何還是無法執行???
為了確定錯誤訊息在表達什麼,我故意輸入一個不存在的檔案:http://localhost/cgi-bin/not.cgi
結果出現:
404 找不到網頁
查詢的網頁可能已經移除、重新命名或者暫時無法使用。
-------------------------------------------------------------------------------
那就表示說先前apache可以定位到我的cgi-bin/test.cgi, 只是它無法執行 我還必須設定與perl有關的參數嗎??? 可是書上都沒提到說??
贊助商連結