installed mod_perl, but no MOD_PERL in ENV
I just compiled and installed mod_perl 2.0.3 for apache Apache/2.2.8
Did a LoadModule perl_module modules/mod_perl.so in httpd.conf
No errors and get the following in logs when bounce httpd service:
[Tue Aug 05 22:44:03 2008] [notice] caught SIGTERM, shutting down
[Tue Aug 05 22:44:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 05 22:44:04 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 05 22:44:04 2008] [notice] Digest: done
[Tue Aug 05 22:44:04 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0.
Not sure why I don't see this as it *seems* that mod_perl is integrated.
System info:
Apache: 2.2.8
mod_perl: 2.0.3
CGI perl module: 3.28
perl: v5.8.8
OS: RedHat Fedora 8 Linux kernel -- 2.6.25.6-27.fc8
A point in the right direction would be much appreciated.
Thanks.
RE: installed mod_perl, but no MOD_PERL in ENV
Hi Jayson,
I've used $ENV{MOD_PERL} to print the version of mod_perl installed. Also, you should be able to see it on your ServerSignature. Hope that helps.
Dan
[color=blue]
> Date: Tue, 5 Aug 2008 21:07:58 -0700
> From: [email]jaysonhill03@sbcglobal.net[/email]
> Subject: installed mod_perl, but no MOD_PERL in ENV
> To: [email]modperl@perl.apache.org[/email]
>
> I just compiled and installed mod_perl 2.0.3 for apache Apache/2.2.8
> Did a LoadModule perl_module modules/mod_perl.so in httpd.conf
>
> No errors and get the following in logs when bounce httpd service:
> [Tue Aug 05 22:44:03 2008] [notice] caught SIGTERM, shutting down
> [Tue Aug 05 22:44:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
> [Tue Aug 05 22:44:04 2008] [notice] Digest: generating secret for digest authentication ...
> [Tue Aug 05 22:44:04 2008] [notice] Digest: done
> [Tue Aug 05 22:44:04 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
>
> However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0.
> Not sure why I don't see this as it *seems* that mod_perl is integrated.
>
> System info:
>
> Apache: 2.2.8
> mod_perl: 2.0.3
> CGI perl module: 3.28
> perl: v5.8.8
> OS: RedHat Fedora 8 Linux kernel -- 2.6.25.6-27.fc8
>
> A point in the right direction would be much appreciated.
>
> Thanks.
> [/color]
_________________________________________________________________
Reveal your inner athlete and share it with friends on Windows Live.
[url]http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us[/url]
Re: installed mod_perl, but no MOD_PERL in ENV
Jayson Hill wrote:
[color=blue]
> However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0.
> Not sure why I don't see this as it *seems* that mod_perl is integrated.[/color]
Just because mod_perl is installed doesn't mean that whatever script you
are using to print $ENV{MOD_PERL} is being run under mod_perl. What does
the relevant section of your httpd.conf look like.
Also, please see
[url]http://perl.apache.org/docs/2.0/user/intro/start_fast.html[/url]
--
Michael Peters
Plus Three, LP
Re: installed mod_perl, but no MOD_PERL in ENV
Quoting Jayson Hill <jaysonhill03@sbcglobal.net>:
[color=blue]
> I just compiled and installed mod_perl 2.0.3 for apache Apache/2.2.8
> Did a LoadModule perl_module modules/mod_perl.so in httpd.conf
>
> No errors and get the following in logs when bounce httpd service:
> [Tue Aug 05 22:44:03 2008] [notice] caught SIGTERM, shutting down
> [Tue Aug 05 22:44:04 2008] [notice] suEXEC mechanism enabled
> (wrapper: /usr/sbin/suexec)
> [Tue Aug 05 22:44:04 2008] [notice] Digest: generating secret for
> digest authentication ...
> [Tue Aug 05 22:44:04 2008] [notice] Digest: done
> [Tue Aug 05 22:44:04 2008] [notice] Apache/2.2.8 (Unix) DAV/2
> mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
>
> However, I don't see the MOD_PERL entry in ENV, and when I print
> $CGI::MOD_PERL value to browser, it is 0.
> Not sure why I don't see this as it *seems* that mod_perl is integrated.[/color]
I'm assuming that you are trying to run CGI's you were previously
running under mod_cgi using mod_perl. Have you added anything to your
httpd.conf to actually tell your CGI's to run under mod_perl?
see:
[url]http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Registry_Scripts[/url]
Adam