You are not logged in.

#1 2014-05-14 14:02:04

sweisman
Member
Registered: 2008-05-20
Posts: 42

Apache 2.4 mod_perl libapreq problems

I recently upgraded to Apache 2.4. This is now the bane of my existence.

I run several servers with mod_perl and perl-libapreq. I cannot figure out how to these modules to work with Apache 2.4. I get the error:

httpd: Syntax error on line 39 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_apreq2.so into server: /etc/httpd/modules/mod_apreq2.so: undefined symbol: ap_log_rerror

I tried installing the Apache22 AUR, but I got a similar undefined symbol error for mod_perl instead. I don't care which version I end up using. I just want something recent enough to not have the HeartBleed bug in it.

Suggestions?

Offline

#2 2014-05-15 02:23:16

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.4 mod_perl libapreq problems

I see that perl-libapreq2 has an Apache module, but I do not remember that this package was recompiled after the recent Apache major upgrade. Could you please rebuild perl-libapreq2 package and see if it fixes your problem?


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2014-05-15 02:41:30

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.4 mod_perl libapreq problems

Actually I just built perl-libapreq2 against the latest Apache and pushed it to [community-testing]. Could you please check if it fixes your issue?


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2014-05-20 07:30:08

sweisman
Member
Registered: 2008-05-20
Posts: 42

Re: Apache 2.4 mod_perl libapreq problems

With some module changes, the server now starts.

However, I get this error when GETting a page:

[Tue May 20 10:02:31.577352 2014] [perl:error] [pid 23254] [client 127.0.0.1:37436] Can't locate object method "remote_ip" via package "Apache2::Connection" at /opt/cmf/lib/cmf/control/web.pm line 100.\n

While looking into this, I saw that mod_perl may not actually work with 2.4. Is this still the case? Sadly, mod_perl seems to have been tossed in the trash. Probably time for me to move on anyway.

In the meantime, it was relatively painless to install the AUR apache22 package along with mod_perl and libapreq2 built from tarballs, and my site still works.

Offline

#5 2014-05-20 07:42:03

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.4 mod_perl libapreq problems

sweisman wrote:

I saw that mod_perl may not actually work with 2.4. Is this still the case? Sadly, mod_perl seems to have been tossed in the trash.

Unfortunately mod_perl did not add apache2.4 support yet. Arch uses patches from development branch but they might not be stable.

sweisman wrote:

[Tue May 20 10:02:31.577352 2014] [perl:error] [pid 23254] [client 127.0.0.1:37436] Can't locate object method "remote_ip" via package "Apache2::Connection" at /opt/cmf/lib/cmf/control/web.pm line 100.\n

It is Apache 2.4 API change. See http://httpd.apache.org/docs/2.4/develo … i_2_4.html and search for remote_ip. Your file /opt/cmf/lib/cmf/control/web.pm should be modified to match Apache 2.4.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#6 2014-05-21 07:19:06

sweisman
Member
Registered: 2008-05-20
Posts: 42

Re: Apache 2.4 mod_perl libapreq problems

I had to make some further config changes, loading additional modules, but it now seems to work correctly. I'm glad that patches were applied to mod_perl to get it to work in 2.4. Thanks for the help.

I only needed to change the one line of code too. Not bad. The API change was a very minor and sensible one too.

Offline

#7 2014-05-21 13:08:40

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.4 mod_perl libapreq problems

Great to hear!

Don't you mind describe your findings (including Apache 2.4 migration instructions) to https://wiki.archlinux.org/index.php/Mod_perl ?


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#8 2014-06-06 10:57:15

sweisman
Member
Registered: 2008-05-20
Posts: 42

Re: Apache 2.4 mod_perl libapreq problems

This is probably due to the recent update to Perl 5.20.

Can't load '/usr/lib/perl5/site_perl/auto/APR/Request/Request.so' for module APR::Request: /usr/lib/perl5/site_perl/auto/APR/Request/Request.so: undefined symbol: apreq_hook_disable_uploads at /usr/lib/perl5/core_perl/DynaLoader.pm line 193.

Can you check this out.

Offline

Board footer

Powered by FluxBB