我想在我的 linux 服务器上安装 Bugzilla。安装成功,但出现以下错误:
TEST-FAILED Web 服务器未执行 CGI 文件
如何解决这个问题?
2.2.4.1。阿帕奇 httpd
要配置您的 Apache Web 服务器以使用 Bugzilla,请执行以下操作:
检查这个:
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
这些指令允许 Apache 运行在 bugzilla 目录中找到的 .cgi 文件;如果有人只在浏览器中键入目录名称,则指示服务器查找名为 index.cgi 的文件;并允许 Bugzilla 的 .htaccess 文件覆盖全局权限。
将 SELinux 设置更改为许可对我有用。
在 Fedora Core 和 RedHat Enterprise 中,编辑 /etc/selinux/config,您将看到如下几行:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
...只需更改SELINUX=enforcing
为SELINUX=permissive
,您就完成了。
您可以尝试阅读Apache 文档,它应该包含您需要的所有内容。