内部服务器错误

发布于 2024-08-08 23:57:14 字数 1228 浏览 8 评论 0原文

当我尝试访问网页服务器“192.168.50.29/cgi-bin/tinyPL.cgi”时出现错误消息;看起来像这样:

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.
Apache/2.2.11 (Fedora) Server at 192.168.50.29 Port 80

Error_log :

 [Sat Oct 24 21:30:47 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 [Sat Oct 24 21:30:47 2009] [notice] Digest: generating secret for digest authentication ...
 [Sat Oct 24 21:30:47 2009] [notice] Digest: done
 [Sat Oct 24 21:30:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] (13)Permission denied: exec of '/var/www/cgi-bin/tinyPL.cgi' failed
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] Premature end of script headers: tinyPL.cgi

任何人都可以帮我解决这个问题吗!

The error message I gen when I try to access the web page server "192.168.50.29/cgi-bin/tinyPL.cgi"; looks like this:

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.
Apache/2.2.11 (Fedora) Server at 192.168.50.29 Port 80

Error_log :

 [Sat Oct 24 21:30:47 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 [Sat Oct 24 21:30:47 2009] [notice] Digest: generating secret for digest authentication ...
 [Sat Oct 24 21:30:47 2009] [notice] Digest: done
 [Sat Oct 24 21:30:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] (13)Permission denied: exec of '/var/www/cgi-bin/tinyPL.cgi' failed
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] Premature end of script headers: tinyPL.cgi

Could any one help me on this!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滥情哥ㄟ 2024-08-15 23:57:14

您的日志文件将包含有关该错误的更多详细信息,但 CGI 脚本上的内部服务器错误通常意味着当服务器尝试执行您的 CGI 程序时,预期的标头不存在。

在 Perl 脚本中,这将是(例如):

use CGI qw(:standard);
print header();

它将打印出类似以下内容:

Content-type: text/html

尝试从命令行运行 CGI 脚本,看看是否打印出这些行。另一个问题可能是由于访问权限造成的。 Apache 可能无法执行您的脚本。

Your log file will have more details regarding the error, but an Internal Server error on a CGI script usually means that when the server tried to execute your CGI program the expected headers was not present.

In a perl script, that would be (for example):

use CGI qw(:standard);
print header();

Which will print out something like:

Content-type: text/html

Try and run your CGI script from the commandline and see if prints out those lines. The other problem might be due to access permissions. Apache might not be able to execute your script.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文