- 論壇徽章:
- 0
|
用PERL 寫CGI 的如何配置才能運行?
是不是只要配文件
/etc/httpd/conf/httpd.conf
此文件要配哪幾個變量
請多指教,我剛接觸!
謝了!
我的html文件放在/ var/www/html目錄下
我的cgi文件放在/var/www/cgi-bin目錄下
html文件可以,cgi文件返回提示
反問cgi 試了以下語句:
http://IP/var/www/cgi-bin/test.cgi
./cgi-bin/test.cgi
Object not found!
用此語句:
../cgi-bin/test.cgi
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: a.cgi
If you think this is a server error, please contact the webmaster
Error 500 |
|