Subject: | Apache2::Module::add causes assertion fail. |
I'm trying to add a directive to apache's httpd.conf, straight out of the page at http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives:
package Journals::Trans;
use strict;
use warnings FATAL => 'all';
use Apache2::Module ();
use Apache2::Directive ();
my @directives = (
{
name => 'JournalsTrans',
},
);
Apache2::Module::add(__PACKAGE__, \@directives);
sub JournalsTrans {
my ($self, $parms, @args) = @_;
}
Starting apache throws an exception:
Thu Sep 07 11:19:58.780223 2017 core:crit pid 15028 AH00102: Thu Sep 07 11:19:58 2017 file config.c, line 581, assertion "total_modules < conf_vector_length" failed
I've made a very simple httpd.conf with the above code and simply
PerlRequire Journals::Trans
JournalsTrans parm1 parm2
Environment:
CentOS 7
perl 5.16.3
apache Apache/2.4.6
Name : httpd
Arch : x86_64
Version : 2.4.6
Release : 67.0.1.el7_4.2
From repo : ol7_latest
Name : mod_perl
Arch : x86_64
Version : 2.0.10
Release : 2.el7
Size : 6.2 M
Repo : installed
From repo : epel
So all out of the box. Wondering the best way forward.