Configuring Apache for mod_perl

Configuring Apache for mod_perl

am 18.08.2009 00:38:51 von David Holder

This is a multi-part message in MIME format.
--------------010809000502050307030003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Everyone,

Can someone please tell me what configuration settings are required to
get mod_perl working with apache2 on a Fedora Core installation please?

I've added LoadModule perl_module modules/mod_perl.so to my httpd.conf
but afterwards it won't run, following is logged:

[Mon Aug 17 23:22:01 2009] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Mon Aug 17 23:22:01 2009] [notice] Digest: generating secret for digest
authentication ...
[Mon Aug 17 23:22:01 2009] [notice] Digest: done
[Mon Aug 17 23:22:01 2009] [notice] mod_python: Creating 4 session
mutexes based on 256 max processes and 0 max threads.
[Mon Aug 17 23:22:01 2009] [notice] mod_python: using mutex_directory /tmp
[Mon Aug 17 23:22:01 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9
mod_python/3.3.1 Python/2.6 mod_ssl/2.2.11 OpenSSL/0.9.8k-fips
mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Aug 17 23:23:11 2009] [notice] caught SIGTERM, shutting down
[Mon Aug 17 23:23:12 2009] [error] Can't locate Apache2/Reload.pm in
@INC (@INC contains: ../../ /opt/otrs/Kernel/cpan-lib /opt/otrs/
/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread- multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-mult i
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl . /etc/httpd) at (eval 105) line 3.\n
[Mon Aug 17 23:23:12 2009] [error] Can't load Perl module
Apache2::Reload for server 127.0.0.1:0 , exiting...

anyone got any ideas?

Thanks

--------------010809000502050307030003
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit






Hi Everyone,



Can someone please tell me what configuration settings are required to
get mod_perl working with apache2 on a Fedora Core installation please?



I've added LoadModule perl_module modules/mod_perl.so to my httpd.conf
but afterwards it won't run, following is logged:



[Mon Aug 17 23:22:01 2009] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)

[Mon Aug 17 23:22:01 2009] [notice] Digest: generating secret for
digest authentication ...

[Mon Aug 17 23:22:01 2009] [notice] Digest: done

[Mon Aug 17 23:22:01 2009] [notice] mod_python: Creating 4 session
mutexes based on 256 max processes and 0 max threads.

[Mon Aug 17 23:22:01 2009] [notice] mod_python: using mutex_directory
/tmp

[Mon
Aug 17 23:22:01 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9
mod_python/3.3.1 Python/2.6 mod_ssl/2.2.11 OpenSSL/0.9.8k-fips
mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations

[Mon Aug 17 23:23:11 2009] [notice] caught SIGTERM, shutting down

[Mon
Aug 17 23:23:12 2009] [error] Can't locate Apache2/Reload.pm in @INC
(@INC contains: ../../ /opt/otrs/Kernel/cpan-lib /opt/otrs/
/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread- multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-mult i
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl . /etc/httpd) at (eval 105) line 3.\n

[Mon Aug 17 23:23:12 2009] [error] Can't load Perl module
Apache2::Reload for server ,
exiting...



anyone got any ideas?



Thanks




--------------010809000502050307030003--

RE: Configuring Apache for mod_perl

am 18.08.2009 01:36:30 von Lloyd Richardson

Looks to me like you are trying to load Apache2::Reload in your
httpd.conf somewhere, and don't have it installed on the server.

Probably not a module you want to be loading unless this is a
development server...


From: David Holder [mailto:david.holder@gmail.com]=20
Sent: Monday, August 17, 2009 5:39 PM
To: modperl@perl.apache.org
Subject: Configuring Apache for mod_perl

Hi Everyone,

Can someone please tell me what configuration settings are required to
get mod_perl working with apache2 on a Fedora Core installation please?

I've added LoadModule perl_module modules/mod_perl.so to my httpd.conf
but afterwards it won't run, following is logged:

[Mon Aug 17 23:22:01 2009] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Mon Aug 17 23:22:01 2009] [notice] Digest: generating secret for digest
authentication ...
[Mon Aug 17 23:22:01 2009] [notice] Digest: done
[Mon Aug 17 23:22:01 2009] [notice] mod_python: Creating 4 session
mutexes based on 256 max processes and 0 max threads.
[Mon Aug 17 23:22:01 2009] [notice] mod_python: using mutex_directory
/tmp=20
[Mon Aug 17 23:22:01 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9
mod_python/3.3.1 Python/2.6 mod_ssl/2.2.11 OpenSSL/0.9.8k-fips
mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Aug 17 23:23:11 2009] [notice] caught SIGTERM, shutting down
[Mon Aug 17 23:23:12 2009] [error] Can't locate Apache2/Reload.pm in
@INC (@INC contains: ../../ /opt/otrs/Kernel/cpan-lib /opt/otrs/
/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread- multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-mult i
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl . /etc/httpd) at (eval 105) line 3.\n
[Mon Aug 17 23:23:12 2009] [error] Can't load Perl module
Apache2::Reload for server 127.0.0.1:0, exiting...

anyone got any ideas?

Thanks