Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Require not allowed

1,145 views
Skip to first unread message

John

unread,
Dec 28, 2015, 11:42:35 AM12/28/15
to support-...@lists.mozilla.org
I am installing Bugzilla 5.0.2 on CentOS 7.2 with Apache 2.4.6.
Am getting an error when trying to access the site. The Apache error log
file has the following error:
.htaccess: Require not allowed here

When I run the .testserver.pl I get the following:
TEST-OK Webserver is running under group id in $webservergroup.
TEST-FAILED Fetch of images/padlock.png failed
Your web server could not fetch http://cent7/bugzilla/images/padlock.png.
Check your web server configuration and try again.

Here is my .htaccess file

# Don't allow people to retrieve non-cgi executable files or our private
data
<FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>
<IfModule mod_version.c>
<IfVersion < 2.4>
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Deny from all
</IfModule>
</FilesMatch>

#Options -Indexes

<IfModule mod_expires.c>
<IfModule mod_headers.c>
<IfModule mod_env.c>
<FilesMatch (\.js|\.css)$>
ExpiresActive On
ExpiresDefault "now plus 1 years"
Header append Cache-Control "public"
</FilesMatch>

# This lets Bugzilla know that we are properly sending Cache-Control
# and Expires headers for CSS and JS files.
SetEnv BZ_CACHE_CONTROL 1
</IfModule>
</IfModule>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
</IfModule>

Thorsten Schöning

unread,
Dec 28, 2015, 1:48:40 PM12/28/15
to support-...@lists.mozilla.org
Guten Tag John,
am Montag, 28. Dezember 2015 um 17:42 schrieben Sie:

> I am installing Bugzilla 5.0.2 on CentOS 7.2 with Apache 2.4.6.
> Am getting an error when trying to access the site. The Apache error log
> file has the following error:
> .htaccess: Require not allowed here

Sounds like the following:

https://bugzilla.mozilla.org/show_bug.cgi?id=1133690#c27

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Thorsten Schöning

unread,
Dec 28, 2015, 2:18:02 PM12/28/15
to support-...@lists.mozilla.org
Guten Tag John,
am Montag, 28. Dezember 2015 um 20:00 schrieben Sie:

> The fix you pointed to did not fix it for me. With bugzilla a
> subdirectory of /var/www/html does there need to be a <Directory
> "/var/www/html/bugzilla"> section?

Yes, as stated in the docs:

https://bugzilla.readthedocs.org/en/5.0/installing/apache.html#apache-with-mod-cgi

P.S.: Please don't answer to individuals, instead make sure that the
list is the proper recipient.

> Private Emails Do Not Help Others

https://www.bugzilla.org/support/

John

unread,
Dec 28, 2015, 2:47:30 PM12/28/15
to support-...@lists.mozilla.org
I appreciate your feedback but am still unable to get it working. I
followed the steps detailed in the following link.

https://www.howtoforge.com/tutorial/install-bugzilla-50-on-centos-7/#install-apache-with-modssl-and-modperl

Based on this document I have installed mod_perl not mod-cgi. It looks
like mod-cgi would actually be better than mod-perl. I have a backup of
this VM before I started installing Bugzilla so it would be easy to
start again. The install documentation
https://bugzilla.readthedocs.org/en/5.0/installing/linux.html is not
current for some of the steps for using CentOS 7 (same as RedHat7). I am
not an expert at this and if you can provide a better link which to go
from that would be appreciated.

John

Thorsten Schöning

unread,
Dec 28, 2015, 3:33:29 PM12/28/15
to support-...@lists.mozilla.org
Guten Tag John,
am Montag, 28. Dezember 2015 um 20:47 schrieben Sie:

> https://www.howtoforge.com/tutorial/install-bugzilla-50-on-centos-7/#install-apache-with-modssl-and-modperl

You should install Bugzilla using git, not wget and tar like suggested
in that link.

Besides that, that link doesn't install Bugzilla to use mod_perl
properly and it does provide the same line with "/var/www/html/bugzilla"
like the official docs do, because it's simply a mod_cgi installation.
Maybe depending on global mod_perl configuration of your httpd
mod_perl is used as legacy CGI handler, but the Bugzilla installation
part pretty clearly is mod_cgi and doesn't conform to the official
docs.

https://bugzilla.readthedocs.org/en/5.0/installing/apache.html#apache-with-mod-perl

> Based on this document I have installed mod_perl not mod-cgi. It looks
> like mod-cgi would actually be better than mod-perl. I have a backup of
> this VM before I started installing Bugzilla so it would be easy to
> start again.

Before you get the sledgehammer, check your version of httpd and the
configuration for Bugzilla to follow the docs, which say "All" instead
of AuthConfig and provide different paths than you seem to have.

Mit freundlichen Grüßen,

Thorsten Schöning

John

unread,
Dec 28, 2015, 4:07:17 PM12/28/15
to support-...@lists.mozilla.org
Thorsten


I have decided to start a new on a different Virtual Machine (still have
the previous one as well) following the official instructions.
https://bugzilla.readthedocs.org/en/5.0/installing/linux.html.

When I try to install the various packages it cannot file some of them.
No package mysql-server available.
No package perl(Authen::Radius) available.
No package perl(Chart::Lines) available.
No package perl(Daemon::Generic) available.
No package perl(Email::MIME::Attachment::Stripper) available.
No package perl(Email::Sender) available.
Package perl-Encode-2.51-7.el7.x86_64 already installed and latest version
No package perl(PatchReader) available.
No package perl(TheSchwartz) available.

Not sure where to go. Seems that both the official and the unofficial
seems to have errors in the instructions. Since you indicated that the
unofficial version had errors with installing perl could you please
provide the correct instructions. Maybe by the time we are finished
with this we will have a accurate instructions for installing on CentOS 7.

Thanks
John

John

unread,
Dec 28, 2015, 4:59:24 PM12/28/15
to support-...@lists.mozilla.org
Thorsten

I was finally able to get this working. What the post failed to mention
regarding the error
https://bugzilla.mozilla.org/show_bug.cgi?id=1133690#c27 was where to
make this change. I was changing the httpd.conf file when I needed to
make the change in the bugzilla.conf file. Once I figured this out I
followed the instructions on the howtoforge site except I used the git
command to download bugzilla as you recommended.

Thanks for your help!

John


On 12/28/2015 12:32 PM, Thorsten Schöning wrote:
> Guten Tag John,
> am Montag, 28. Dezember 2015 um 20:47 schrieben Sie:
>
>> https://www.howtoforge.com/tutorial/install-bugzilla-50-on-centos-7/#install-apache-with-modssl-and-modperl
> You should install Bugzilla using git, not wget and tar like suggested
> in that link.
>
> BesideThorsten

Thorsten Schöning

unread,
Dec 29, 2015, 5:50:12 AM12/29/15
to support-...@lists.mozilla.org
Guten Tag John,
am Montag, 28. Dezember 2015 um 22:07 schrieben Sie:

> When I try to install the various packages it cannot file some of them.

Just for the records, package names change once a while and some Perl
libs simply might not be available using your package manager, so if
packages are missing, you need to search if there are known under
different names, if so, this would be something you could provide in a
bug to get the docs changed, or if packages are really not available,
you can stick to Bugzilla installing them using CPAN. But of course
this depends on how good your platform is supported by those packages
as well.

https://bugzilla.readthedocs.org/en/5.0/installing/linux.html#perl-modules

Mit freundlichen Grüßen,

Thorsten Schöning

Emmanuel Seyman

unread,
Dec 29, 2015, 7:32:46 AM12/29/15
to support-...@lists.mozilla.org
* Thorsten Schöning [29/12/2015 11:49] :
>
> But of course
> this depends on how good your platform is supported by those packages
> as well.

Email::Sender isn't available as a package for RHEL/Centos 7.
That's been on my TODO list for some time.

Emmanuel
0 new messages