Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550246 - www-apache/mod_perl: default config file does not work w/apache-2.4
Summary: www-apache/mod_perl: default config file does not work w/apache-2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: https://httpd.apache.org/docs/2.4/upg...
Whiteboard:
Keywords:
Depends on:
Blocks: apache-2.4-stable
  Show dependency tree
 
Reported: 2015-05-23 16:13 UTC by SpanKY
Modified: 2015-05-29 01:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!