Help installing Bugzilla 3.0 on Red Hat Enterprise Linux 5 - Mozilla
This is a discussion on Help installing Bugzilla 3.0 on Red Hat Enterprise Linux 5 - Mozilla ; Hello! I've spent quite a few hours trying to get Bugzilla 3.0
running on my Red Hat Enterprise Linux 5 box, and think that it's time
I ask for help.
I'm encountering a problem very similar to this post:
http://groups.google.com/group/mozil...6056e9a77846e/
...
-
Help installing Bugzilla 3.0 on Red Hat Enterprise Linux 5
Hello! I've spent quite a few hours trying to get Bugzilla 3.0
running on my Red Hat Enterprise Linux 5 box, and think that it's time
I ask for help.
I'm encountering a problem very similar to this post:
http://groups.google.com/group/mozil...6056e9a77846e/
It really does smell like a SELinux problem to me. However, setting
the SELinux contexts that way doesn't help me. Here are the details.
* Bugzilla is in: /var/www/bugzilla-3.0
* checksetup.pl runs just fine.
* testserver.pl shows a problem executing CGI:
# ./testserver.pl http://localhost/bugzilla
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got front picture.
Use of uninitialized value in pattern match (m//) at ./testserver.pl
line 110.
Use of uninitialized value 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.
* I get a blank page when I browse to http://[my host]/bugzilla/
index.cgi
* Static (non-CGI) content works fine.
* Apache's error log says:
[Fri Aug 03 02:12:08 2007] [error] [client 171.66.17.109]
(13)Permission denied: exec of '/var/www/bugzilla-3.0/index.cgi'
failed
[Fri Aug 03 02:12:08 2007] [error] [client 171.66.17.109] Premature
end of script headers: index.cgi
* If I run index.cgi from my shell (./index.cgi), I get some weird
stuff:
# ./index.cgi | head
Content-Type: text/html; charset=UTF-8
[Fri Aug 3 02:27:57 2007] index.cgi: Use of uninitialized value in
pattern match (m//) at (eval 39) line 4.
[Fri Aug 3 02:27:57 2007] index.cgi: Use of uninitialized value in
pattern match (m//) at (eval 39) line 4.
[Fri Aug 3 02:27:57 2007] index.cgi: Use of uninitialized value in
substitution (s///) at (eval 43) line 45.
[Fri Aug 3 02:27:57 2007] index.cgi: Use of uninitialized value in
substitution (s///) at (eval 43) line 45.
[Fri Aug 3 02:27:57 2007] index.cgi: Use of uninitialized value in
substitution (s///) at (eval 43) line 45.
"http://www.w3.org/TR/html4/loose.dtd">
* I already did chcon -R -t httpd_sys_content_t /var/www/bugzilla-3.0
* I have the following Apache configuration in /etc/httpd/conf.d/
bugzilla.conf:
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
#AllowOverride All
Alias /bugzilla/ /var/www/bugzilla-3.0/
Help? 
-Ansel
-
Re: Help installing Bugzilla 3.0 on Red Hat Enterprise Linux 5
On Fri, 03 Aug 2007 02:38:09 -0700 anseljh wrote:
> I'm encountering a problem very similar to this post:
> http://groups.google.com/group/mozil...6056e9a77846e/
>
> It really does smell like a SELinux problem to me. However, setting
> the SELinux contexts that way doesn't help me. Here are the details.
>
> * Bugzilla is in: /var/www/bugzilla-3.0
Wrong place. The directory needs to be in /var/www/html/ for
SELinux. (Make sure you also do "restorecon -Rv" on the directory after
you move it.)
Does it help if you do "setenforce 0" (thus turning off
SELinux)?
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
Re: Help installing Bugzilla 3.0 on Red Hat Enterprise Linux 5
On Aug 3, 6:35 am, Max Kanat-Alexander wrote:
> On Fri, 03 Aug 2007 02:38:09 -0700 anseljh wrote:
>
> > It really does smell like a SELinux problem to me. However, setting
> > the SELinux contexts that way doesn't help me. Here are the details.
>
> > * Bugzilla is in: /var/www/bugzilla-3.0
>
> Wrong place. The directory needs to be in /var/www/html/ for
> SELinux. (Make sure you also do "restorecon -Rv" on the directory after
> you move it.)
>
> Does it help if you do "setenforce 0" (thus turning off
> SELinux)?
>
> -Max
Thanks for the reply, Max.
* I moved bugzilla to: /var/www/html/bugzilla-3.0
* I ran: restorecon -Rv /var/www/html/bugzilla-3.0/
* I modified my bugzilla.conf to point to the new location:
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
#AllowOverride All
Alias /bugzilla/ /var/www/html/bugzilla-3.0/
* I restarted Apache.
I still get the same errors in the logs and if I run index.cgi
directly.
I also tried setenforce 0, and it didn't change anything either.
Hmm....?