自己写了一个简单的cgi程序,在apache下可以用客户端浏览器打开 但是在thttpd下,总显示错误是: 403 Forbidden The requested URL '/cgi-bin/lesson1.cgi' resolves to a file which is marked executable but is not a cgi file; retrieving it is forbidden. 我看到thttpd是支持cgi程序的阿,是怎么回事呢?
用 perl 写了一个text.pl code: #!/use/bin/perl use cgi:qw(:standard); my $id = param('id'); my $channle =param(''channle); my $passwd = ("/home/tt"); system "cd $passwd"; system "./tools $id"; print "content-type: text/html\n\n"; 我放到cgi-bin目录下 红色的代码不能执行。
能帮个忙吗? 我现在已经安装了apache了。 目录在/usr/local/apache/www 其中www为网页发布的地址。 我现在有cgi脚本我想调试下。我该怎么办? 如何才能通过web的方式查看
我用shell写的cgi脚本,当通过网络访问时,总是询问打开还是下载,选打开后又要选打开工具,选打开工具后仍不能打开,一直无法直接运行,我现在是用cgi作路由器,请高手们指教,谢谢!!! [ 本帖最后由 taichilau 于 2005-11-30 08:38 编辑 ]
第一次安装了FreeBsd ,第一次安装Apache,下载了GNU cgicc,把她的例子复制到发布目录下,结果所有的cgi都不能运行,error_log里的提示:Premature end of script headers : xxx.cgi,referer : http://myaddress 然后我直接把cgi在终端上当作可执行程序运行一边,再到浏览器里运行,居然就能用了,重启动后也可以用,这是为何?
迫切求救:一个留言板不能正常使用,提示的错误如何: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. 有谁知道这是怎么回事? 快快帮帮我! 在线等待! 先谢谢各位了!