installed mod_perl, but no MOD_PERL in ENV - modperl

This is a discussion on installed mod_perl, but no MOD_PERL in ENV - modperl ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: installed mod_perl, but no MOD_PERL in ENV

  1. 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.


  2. 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

    > Date: Tue, 5 Aug 2008 21:07:58 -0700
    > From: jaysonhill03@sbcglobal.net
    > Subject: installed mod_perl, but no MOD_PERL in ENV
    > To: modperl@perl.apache.org
    >
    > 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.
    >


    __________________________________________________ _______________
    Reveal your inner athlete and share it with friends on Windows Live.
    http://revealyourinnerathlete.window...hichathlete_us

  3. Re: installed mod_perl, but no MOD_PERL in ENV

    Jayson Hill wrote:

    > 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.


    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
    http://perl.apache.org/docs/2.0/user...tart_fast.html

    --
    Michael Peters
    Plus Three, LP


  4. Re: installed mod_perl, but no MOD_PERL in ENV

    Quoting Jayson Hill :

    > 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.


    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:
    http://perl.apache.org/docs/2.0/user...gistry_Scripts

    Adam


+ Reply to Thread