Bugzilla on CentOS (Plesk 9, Puretec Virtual Server) Can't get apache to execute .cgi

Support for webhosts that use CentOS
Post Reply
Meldric
Posts: 1
Joined: 2011/02/14 15:18:55

Bugzilla on CentOS (Plesk 9, Puretec Virtual Server) Can't get apache to execute .cgi

Post by Meldric » 2011/02/14 15:32:00

Hi everyone!

First, I need to add myself to the list of people who are fairly new to linux. I have moved to a CentOS linux on my Virtual server at puretec (.de).
My sites are running ok, I managed to get Teamspeak up, but I am stuck on bugzilla.

- I have installed bugzilla.
- Installed all needed perl packages.
- created a mysql db and user (in plesk)
- imported the tables from my old bugzilla installation (Windows)
- edit localconfig to access the db
- checksetup.pl in the bugzilla root reports everythings fine
- testserver.pl says: "TEST-FAILED Webserver is not executing CGI files."

Bugzilla is installed on /usr/local/bugzilla/bugzilla
I have a symlink to that directory in /var/www/vhosts/clanwolf.net/subdomains/bugzilla/httpdocs

I have added the obvious things into the httpd.conf:

AddHandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes


I also added:
DirectoryIndex index.html index.html.var index.shtml index.cfm index.php index.htm [b][color=0000FF]index.cgi[/color][/b]

I used the following groups in localconfig:
#$webservergroup = 'apache';
#$webservergroup = 'users';
$webservergroup = 'psacln';
...
$use_suexec = 1;

psacln being the group that is given in the file:
/var/www/vhosts/clanwolf.net/conf/httpd.include

ServerName bugzilla.clanwolf.net:80
SuexecUserGroup psacln

and

ServerName bugzilla.clanwolf.net:443
SuexecUserGroup psacln

PROBLEM:
Server is showing a white, empty page when trying to access http://bugzilla.clanwolf.net.

Error-Log saying:
... mod_mime_magic: can't read `/var/www/vhosts/clanwolf.net/subdomains/bugzilla/httpdocs/index.cgi'
... Premature end of script headers: index.cgi

I have been googling around for two days and I cannot figure out what to do. I came that far that there is a rights problem somewhere and I have found a few rather old threads describing this exact problem. But I do not know what to do now to make apache execute *.cgi.

Have tried things from:
http://fixunix.com/security/579641-config-bugzilla-centos-w-plesk-suexec.html
http://fixunix.com/mozilla/413728-bugzilla-plesk-centos-server-problems-running-group-user-rights.html
http://groups.google.com/group/mozilla.support.bugzilla/browse_thread/thread/a4216242b2b99c79/68c3c837c65edcce
and others ...

I am lost. :(

Greetings,
Christian

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Bugzilla on CentOS (Plesk 9, Puretec Virtual Server) Can't g

Post by pschaff » 2011/02/14 16:54:11

Welcome to the CentOS fora. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users.

Please read about [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url], [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url], and [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url], and note the warnings and advice about installing and configuring the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url].

Looks from here like a case of using non-standard packages and sources. CentOS does not provide bugzilla but EPEL does. I suspect you have done a source install as packages do not usually use /usr/local/...

Plesk is also notorious for doing things in a non-standard way. See:
[url=http://wiki.centos.org/AdditionalResources/OtherVoices]Other Voices[/url]
[url=http://wiki.centos.org/TipsAndTricks/BrokenSpins]When CentOS Is Not CentOS[/url]

Bottom line - if you want help from here that will not break your system you may have to get closer to the CentOS baseline. As a minimum you need to provide more substantive information as explained in the recommended reading.

Post Reply

Return to “CentOS 5 - Webhosting Support”