Problem with Internal Server errors

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Internal Server errors

barry.benowitz
Hi,

I *think* I got all the way through the procedure but I am unable to
view the bugzilla home page.

Here is the apache log:
[Fri Jun 03 17:00:05 2005] [error] [client 127.0.0.1] (13)Permission
denied: exec of '/var/www/html/bugzilla/testagent.cgi' failed
[Fri Jun 03 17:00:05 2005] [error] [client 127.0.0.1] Premature end of
script headers: testagent.cgi
[Fri Jun 03 17:00:05 2005] [error] [client 127.0.0.1] client denied by
server configuration: /var/www/html/bugzilla/localconfig

And here is the testserver.pl output:
root@snake bugzilla]# ./testserver.pl
Usage: ./testserver.pl <URL to this Bugzilla installation>
e.g.:  ./testserver.pl http://www.mycompany.com/bugzilla
[root@snake bugzilla]# ./testserver.pl
http://snake.raritan.com/bugzilla
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got ant picture.
Use of uninitialized value in pattern match (m//) at ./testserver.pl
line 100.
Use of uninitialized value in pattern match (m//) at ./testserver.pl
line 100.
TEST-FAILED Webserver is not executing CGI files.
TEST-OK Webserver is preventing fetch of
http://snake.raritan.com/bugzilla/localconfig.

I have already created a link to /usr/bin/perl from
/usr/bonsaitools/bin/perl and ExecCGI is set in the directory statement
for bugzilla directories.

Thanks in advance.

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Internal Server errors

A. Karl Kornel
In article <[hidden email]>,
 [hidden email] wrote:

> <<<snip>>>
>
> I have already created a link to /usr/bin/perl from
> /usr/bonsaitools/bin/perl and ExecCGI is set in the directory statement
> for bugzilla directories.
>

   I noticed that you don't have your bugzilla directory in a normal
cgi-bin location.  The same is true for me.

   After I finished running localconfig, I went into the .htaccess file
it created and added the following 4 lines:

AddHandler cgi-script cgi
<FilesMatch ^(.*\.cgi)$>
  Options +ExecCGI
</FilesMatch>

   I discovered I needed the AddHandler directive because I wan't inside
a normal cgi-bin directory.  I also went into httpd.conf to make sure
that "AllowOverride All" was set for the directory where bugzilla was
located.  Otherwise the +ExecCGI would be ignored.

   Anyway, checking httpd.conf and adding the above block of code was
enough for me.  You might want to check out similar stuff.  Good luck!
--
=============================
|   Alfred Karl Kornel
|   -- [hidden email]
|   Member- Europa Research Group
|   UNIX / RESOLVE Consultant
=============================

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Internal Server errors

barry.benowitz
Thanks, but that didn't fix it. I have even tried enabling CGI scripts
at the global level. For more information I have the following security
alarm from my linux kernel:

Jun  6 10:06:14 snake kernel: audit(1118066774.028:0): avc:  denied  {
execute } for  pid=14544 exe=/usr/sbin/httpd name=testagent.cgi
dev=dm-0 ino=7833221 scontext=root:system_r:httpd_t
tcontext=root:object_r:usr_t tclass=file

Does this shed any light?

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Internal Server errors

Emmanuel Seyman
Rumpole6 a écrit :
>
> Jun  6 10:06:14 snake kernel: audit(1118066774.028:0): avc:  denied  {
> execute } for  pid=14544 exe=/usr/sbin/httpd name=testagent.cgi
> dev=dm-0 ino=7833221 scontext=root:system_r:httpd_t
> tcontext=root:object_r:usr_t tclass=file

This looks like SELinux related problems. Are you running Bugzilla on Fedora?
You can disable SELinux by editing /etc/sysconfig/selinux.

Emmanuel

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Internal Server errors

barry.benowitz
In reply to this post by barry.benowitz
That fixed it! Thanks very much. even though the http deamon had (what
I thought was) a lot of capabilities unlucked in SELinux, it needed to
be disabled completely.


Barry

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools