|
系统是FC 5,配置HTTP服务后,不能执行CGI。
页面显示错误:
-------------------------------------------------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server ...........
More information about this error may be available in the server error log.
-------------------------------------------------------------------------------------------
下面是httpd.conf里面关于CGI 的配置:
-------------------------------------------------------------------------------------------
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
-------------------------------------------------------------------------------------------
全部配置文件看附件1:httpd.rar
下面是错误日志内容:
-------------------------------------------------------------------------------------------
[Tue Sep 26 16:56:12 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/test.cgi' failed
[Tue Sep 26 16:56:12 2006] [error] [client 192.168.0.200] Premature end of script headers: test.cgi
[Tue Sep 26 16:56:13 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/test.cgi' failed
[Tue Sep 26 16:56:13 2006] [error] [client 192.168.0.200] Premature end of script headers: test.cgi
[Tue Sep 26 16:56:13 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/test.cgi' failed
[Tue Sep 26 16:56:13 2006] [error] [client 192.168.0.200] Premature end of script headers: test.cgi
[Tue Sep 26 16:56:20 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/env.cgi' failed
[Tue Sep 26 16:56:20 2006] [error] [client 192.168.0.200] Premature end of script headers: env.cgi
[Tue Sep 26 16:56:21 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/env.cgi' failed
[Tue Sep 26 16:56:21 2006] [error] [client 192.168.0.200] Premature end of script headers: env.cgi
[Tue Sep 26 16:56:21 2006] [error] [client 192.168.0.200] (2)No such file or directory: exec of '/var/www/cgi-bin/env.cgi' failed
-------------------------------------------------------------------------------------------
详细看附件2:error_log.rar
SElinux已经关闭!
suexec模块也没加载!
可是无法执行CGI,请哪为知道的给个解决的办法! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|