linux 下cgi問題 - Linux

Hedy avatar
By Hedy
at 2012-02-24T14:29

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




--
Tags: Linux

All Comments

Yedda avatar
By Yedda
at 2012-02-26T01:21
找log出來看看就知道了
Delia avatar
By Delia
at 2012-02-29T14:22
chmod +x ?
Sarah avatar
By Sarah
at 2012-03-04T01:22
/var/log/httpd/error_log 出現這個
Victoria avatar
By Victoria
at 2012-03-04T12:59
會不會像是2F所說的權限問題? chmod 755 * 試試看
John avatar
By John
at 2012-03-05T22:52
http://www.perlmonks.org/?node_id=595516 檢查第一行

如何掛載硬碟?

Caitlin avatar
By Caitlin
at 2012-02-24T14:13
※ 引述《martensite (我要冷靜)》之銘言: : ※ 引述《Lecher (海工人)》之銘言: : : 我使用Ubuntu 7.04 : : 在/home/user/abc底下建一個資料夾PDF : : 新增一顆硬碟並格式化完成(sdb1) : : 想將該磁碟掛載到PDF,下了以下指令 : : su ...

如何掛載硬碟?

Enid avatar
By Enid
at 2012-02-24T11:40
※ 引述《Lecher (海工人)》之銘言: : 我使用Ubuntu 7.04 : 在/home/user/abc底下建一個資料夾PDF : 新增一顆硬碟並格式化完成(sdb1) : 想將該磁碟掛載到PDF,下了以下指令 : sudo mount /dev/sdb1 /home/user/abc/PDF : ...

如何掛載硬碟?

Vanessa avatar
By Vanessa
at 2012-02-24T11:01
我使用Ubuntu 7.04 在/home/user/abc底下建一個資料夾PDF 新增一顆硬碟並格式化完成(sdb1) 想將該磁碟掛載到PDF,下了以下指令 sudo mount /dev/sdb1 /home/user/abc/PDF 得到以下訊息: mount point /home/user/abc/ ...

SAMBA 服務的問題

Hedwig avatar
By Hedwig
at 2012-02-24T10:31
小第一直有一個問題 SAMBA我不論怎麼設定 能分享的目錄就只有 /tmp 和 /home 底下的 path = 其他目錄 都會跳出 你沒有存取的權限 小弟我還是linux新手 我知道目錄權限可使用chmod 更改 可是我還是無法分享出來 不知道是發生什麼問題 我這邊目錄是這樣設定的. ...

如何更改開機預設順序

Rachel avatar
By Rachel
at 2012-02-24T03:50
我的OS是Windows 7 由於用得不順手 所以自己灌了Ubuntu 11.10 但預設開機的作業系統是Windows 7 請問要如何改成Ubuntu 11.10呢? 開機選單有兩層 第一層是: 1. Windows 7 2. Ubuntu 11.10 Timeout後會自動進入Wind ...