[問題] DM355安裝thttpd跑CGI的問題...
大家好...我是嵌入式系統的新手,想問一個問題..
我的開發板子是DM355,目前的target_fs是透過NFS,
我想利用thttpd在開發板上跑webserver
按照手冊安裝後,是可以在別台電腦利用IE打上target board的IP連上去
連上後可以看到我自己編輯的首頁,然後我在首頁上做了一個連到cgi程式的連結
這支cgi程式是我依照手冊打的,可是點連結會連不上,
錯誤訊息是The requested URL '/cgi-bin/memory' resolves to a file
which is marked executable but is not a CGI file; retrieving it is forbidden
程式叫memory.cgi如下:
#!/bin/sh
cat << EOF
Content-type: text/plain
Cache-control: no-cache
EOF
echo "#cat /proc/meminfo"
cat /proc/meminfo
echo
echo "# free -b"
free -b
echo
echo "# ps -el"
ps -el
先說明一下我的目錄好了,在thttpd-2.25b --- cgi-bin --- memory.cgi
├- cgi-src --- 空的
├- config.h
├- index.html
.................
index.html的權限是444, memory.cgi的權限是755
不知道還有什麼地方需要修改的呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.22.20.210