linux 下cgi問題 - Linux

Table of Contents

出現這種問題

1.檢查資料及檔案權限

2.http conf 是否指向可用cgi資料夾

3.檢查cgi檔案是否轉成UNIX格式(我就是卡在這關)



-----------------------------------------------

安裝好 httpd

檔案放入 /var/www/html/.

網頁看起來沒問題

把cgi放入/var/www/cgi-bin/.

執行 127.0.0.1/cgi-bin/.

會出現 500

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost 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.

是perl 的問題嗎? 還是什麼 請高手解!

入徑: /var/www/cgi-bin/read.cgi

使用 perl /var/www/cgi-bin/read.cgi 出的來

links http://127.0.0.1/cgi-bin/read.cgi 出現500

用IE開也是 500




--

All Comments

Yedda avatarYedda2012-02-26
找log出來看看就知道了
Delia avatarDelia2012-02-29
chmod +x ?
Sarah avatarSarah2012-03-04
/var/log/httpd/error_log 出現這個
Victoria avatarVictoria2012-03-04
會不會像是2F所說的權限問題? chmod 755 * 試試看
John avatarJohn2012-03-05