Hi all!
I have:
apache httpd-2.2.3
mod_perl-2.0.2
Embperl-2.2.0
where mod_perl is statically linked to httpd.
Now I try to load Embperl from httpd.conf with this directive:
PerlModule Embperl
When I start apache I get this error:
[Sun Sep 10 23:10:00 2006] [error] panic: memory wrap at
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Embperl.pm line
108.\nCompilation failed in require at (eval 2) line 3.\n
[Sun Sep 10 23:10:00 2006] [error] Can't load Perl module Embperl for
server localhost:80, exiting...
However, if I try to use this directive instead:
PerlPostConfigRequire "/home/user/startup.pl"
where startup.pl has this contents:
use Embperl;
1;
It works!
But why? As I understand it, it should not make any difference to invoke
PerlModule compared to invoke PerlPostConfigRequire except when in time
during the apache start process processes the directive.
Regards,
Oskar Ahner