Help - Search - Members - Calendar
Full Version: Bugzilla installation failed when trying to execute CGI through Apache web server. Please help.
ALM Works Forums > Supplementary Products > Virtual Bugzilla Server
ppatrick
Hi,

I've tried to install Bugzilla 3.2.3 (stable version) on Fedora 11. Everything went well up until the last step; running testserver.pl script. Below is the output of testserver.pl:

[root@LinuxBox bugzilla]# ./testserver.pl http://localhost/bugzilla
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got front picture.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 110.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 110.
TEST-FAILED Webserver is not executing CGI files.
TEST-OK Webserver is preventing fetch of http://localhost/bugzilla/localconfig.
TEST-OK GD version 2.43, libgd version 2.0.34; Major versions match.
TEST-OK GD library generated a good PNG image.
TEST-OK Chart library generated a good PNG image.
TEST-OK Template::Plugin::GD is installed.
[root@LinuxBox bugzilla]#

It failed. The web server (Apache 2.2) is not executing CGI. I followed the installation guide by adding the section shown below to /etc/httpd/conf/httpd.conf

<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>

The directory /var/www/html/bugzilla is symbolically linked to /usr/local/apache2/htdocs/bugzilla-3.2.3 (I uncompressed the Bugzilla tar ball there).

The content of /var/www/html/bugzilla/.htaccess file is shown below:
# Don't allow people to retrieve non-cgi executable files or our private data
<FilesMatch ^(.*\.pm|.*\.pl|.*localconfig.*)$>
deny from all
</FilesMatch>

The error messages found in /etc/httpd/conf/logs/error_log is as follow:
[Wed Jun 24 10:34:42 2009] [error] [client 127.0.0.1] (13)Permission denied: exec of '/var/www/html/bugzilla/testagent.cgi' failed
[Wed Jun 24 10:34:42 2009] [error] [client 127.0.0.1] Premature end of script headers: testagent.cgi
[Wed Jun 24 10:34:42 2009] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/bugzilla/localconfig

What did I do wrong? Please help.
Max Kanat-Alexander
I think this question is more appropriate for the support-bugzilla mailing list, described here:

http://www.bugzilla.org/support/

-Max
Gwise
QUOTE (Max Kanat-Alexander @ June 24, 2009) *
I think this question is more appropriate for the support-bugzilla mailing list, described here:

http://www.bugzilla.org/support/

-Max




Change your SELinux settings to permissive.

-Gwise
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.