<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>124282</bug_id>
          
          <creation_ts>2006-02-27 09:43 0000</creation_ts>
          <short_desc>Update from bugzilla 2.18.4 to 2.18.5 causes internal server error.  Have fix!</short_desc>
          <delta_ts>2007-01-03 07:46:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sporring@diku.dk</reporter>
          <assigned_to>web-apps@gentoo.org</assigned_to>
          <cc>alex@weej.com</cc>
    
    <cc>rl03@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>sporring@diku.dk</who>
            <bug_when>2006-02-27 09:43:38 0000</bug_when>
            <thetext>Upgrading from v. 2.18.4 to 2.18.5 in x86 results in an &quot;500 Internal Server error&quot;.  I use enotice, and there have not been any emerge messages, warning me of extra action, which I need to take.

Fix: Some files had changed ownership to root:root, I first changed ownership, although I have no idea if that is really necessary:

chown -R apache:apache /var/www/localhost/htdocs/bugzilla

Then I looked in /var/log/apache2/error_log, which had the error: 

(13)Permission denied: exec of &apos;/var/www/localhost/htdocs/bugzilla/index.cgi&apos; failed, [...]

so I added excecution rights to all the cgi scripts:

chmod u+x /var/www/localhost/htdocs/bugzilla/*.cgi

Which resolved the internal error.

I hope this will help others upgrading bugzilla.

Best, Jon</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2006-12-05 08:41:11 0000</bug_when>
            <thetext>*** Bug 130371 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2006-12-05 08:48:36 0000</bug_when>
            <thetext>The problem here is that the bugzilla ebuild marks all the cgi-files as &quot;server-owned&quot;.

Now /etc/vhosts/webapp-config sets the permissions on such files to

vhost_perms_serverowned_file=&quot;0644&quot;

This can be changed to 

vhost_perms_serverowned_file=&quot;o-w&quot;

and webapp-config should then refrain from killing the permission bit.

The problem is: Server-owned files are usually not intended to be executable for security reasons. I don&apos;t know exactly why the bugzilla ebuild does this but there might be a valid reason for that. I&apos;ll contact rl03 and try to resolve that.

So just as a workaround you can set:

vhost_perms_serverowned_file=&quot;o-w&quot;

in /etc/vhosts/webapp-config for now.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2007-01-03 07:46:26 0000</bug_when>
            <thetext>should be fixed in 2.22.1</thetext>
          </long_desc>
      
    </bug>

</bugzilla>