Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 550246

Summary: www-apache/mod_perl: default config file does not work w/apache-2.4
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: idl0r, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://httpd.apache.org/docs/2.4/upgrading.html
See Also: https://bugs.gentoo.org/show_bug.cgi?id=550638
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 468302    

Description SpanKY gentoo-dev 2015-05-23 16:13:35 UTC
the mod_perl config file has lines like:
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1

those do not work w/apache-2.4.  see this doc for how to adjust things:
https://httpd.apache.org/docs/2.4/upgrading.html

and if you use mod_version, you can support both.  something like:
      <IfModule mod_perl.c>
        Deny from all
      </IfModule>
      <IfModule !mod_perl.c>
        Require all denied
      </IfModule>
Comment 1 SpanKY gentoo-dev 2015-05-23 16:15:06 UTC
another issue in the config file:
AH00526: Syntax error on line 23 of /etc/apache2/modules.d/75_mod_perl.conf:
Either all Options must start with + or -, or no Option may.

seems pretty easy to fix:
-    Options -Indexes ExecCGI
+    Options -Indexes +ExecCGI
Comment 2 Pacho Ramos gentoo-dev 2015-05-23 18:53:16 UTC
@vapier, from my point of view, if you are able to test+fix it for the -r1 revision (the one that is used for apache 2.4), please go ahead and commit :)

Thanks a lot
Comment 3 Mikle Kolyada archtester Gentoo Infrastructure gentoo-dev Security 2015-05-23 18:53:53 UTC
(In reply to Pacho Ramos from comment #2)
> @vapier, from my point of view, if you are able to test+fix it for the -r1
> revision (the one that is used for apache 2.4), please go ahead and commit :)
> 
> Thanks a lot

+1
Comment 4 SpanKY gentoo-dev 2015-05-24 02:37:16 UTC
i didn't notice that the latest mod_perl ebuild has need_apache2_4, so it's much simpler to fix -- no need for mod_version
Comment 6 Pacho Ramos gentoo-dev 2015-05-24 07:33:23 UTC
Thanks!