I'm trying to install bugzilla on a server running Ubuntu 7.10, MySQL
and Apache2. I keep getting the following error when I try to load the
cgi files:
[Tue Aug 12 15:00:42 2008] [error] [client 78.148.225.104]
(13)Permission denied: exec of
'/public_html/black-ops.co.uk/dev/public/bugzilla/index.cgi' failed,
referer: http://dev.black-ops.co.uk/
[Tue Aug 12 15:00:42 2008] [error] [client 78.148.225.104] Premature
end of script headers: index.cgi, referer: http://dev.black-ops.co.uk/
My http.conf is:
root@stwange:/# cat /etc/apache2/httpd.conf
DirectoryIndex index.html index.htm index.pdf index.php
LoadModule cband_module /usr/lib/apache2/modules/mod_cband.so
CBandScoreFlushPeriod 1
CBandRandomPulse On
AddType application/x-httpd-php-source .php5
<Directory /public_html/black-ops.co.uk/dev/public/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
And the vhost config file for the domain is:
<VirtualHost *:80>
ServerAdmin webm...@black-ops.co.uk
ServerName dev.black-ops.co.uk
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.html index.cgi index.php index.pdf
DocumentRoot /public_html/black-ops.co.uk/dev/public/
LogLevel warn
ErrorLog /public_html/black-ops.co.uk/logs/error.log
CustomLog /public_html/black-ops.co.uk/logs/access.log combined
</VirtualHost>
Thank-you in advance,
James Lawrie.
Does the apache user have access to execute this file? Have you re-run
checksetup.pl with the $webservergroup set in the localconfig?
> Does the apache user have access to execute this file? Have you re-run
> checksetup.pl with the $webservergroup set in the localconfig?
Yeah, the first thing I did was change $webservergroup, and www-data
had access to execute the file.
I found the error though, hopefully it will help others:
Firstly I did:
su www-data
./index.cgi
It give me an error about being unable to find strict.pm, and gave me
a list of directories it had tried searching. I did chgrp -R www-data
dir for each directory it gave me, and then chmod 770 -R dir for each
of them, and it worked so it was some kind of permissions issue in the
perl configuration files.
Thanks for the help.