installed mod_perl, but no MOD_PERL in ENV

installed mod_perl, but no MOD_PERL in ENV

am 06.08.2008 06:07:58 von 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.

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

am 06.08.2008 15:31:07 von Jo bu

--_f5c026a7-0479-4c92-8b41-24c9e86b2e25_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi Jayson,

I've used $ENV{MOD_PERL} to print the version of mod_perl installed. Also=
=2C you should be able to see it on your ServerSignature. Hope that helps.

Dan

> Date: Tue=2C 5 Aug 2008 21:07:58 -0700
> From: jaysonhill03@sbcglobal.net
> Subject: installed mod_perl=2C but no MOD_PERL in ENV
> To: modperl@perl.apache.org
>=20
> 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
>=20
> No errors and get the following in logs when bounce httpd service:
> [Tue Aug 05 22:44:03 2008] [notice] caught SIGTERM=2C shutting down
> [Tue Aug 05 22:44:04 2008] [notice] suEXEC mechanism enabled (wrapper: /u=
sr/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
>=20
> However=2C I don't see the MOD_PERL entry in ENV=2C and when I print $CGI=
::MOD_PERL value to browser=2C it is 0.
> Not sure why I don't see this as it *seems* that mod_perl is integrated.
>=20
> System info:
>=20
> 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
>=20
> A point in the right direction would be much appreciated.
>=20
> Thanks.
>=20

____________________________________________________________ _____
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=3Den-us &ocid=3DTXT_TAG=
LM_WLYIA_whichathlete_us=

--_f5c026a7-0479-4c92-8b41-24c9e86b2e25_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






Hi Jayson=2C

I've used $ENV{MOD_PERL} to print the version of mod_p=
erl installed. Also=2C you should be able to see it on your ServerSignature=
.. Hope that helps.

Dan

>=3B Date: Tue=2C 5 Aug 2008 21:07:5=
8 -0700
>=3B From: jaysonhill03@sbcglobal.net
>=3B Subject: insta=
lled mod_perl=2C but no MOD_PERL in ENV
>=3B To: modperl@perl.apache.o=
rg
>=3B
>=3B I just compiled and installed mod_perl 2.0.3 for ap=
ache Apache/2.2.8
>=3B Did a LoadModule perl_module modules/mod_perl.s=
o in httpd.conf
>=3B
>=3B No errors and get the following in log=
s when bounce httpd service:
>=3B [Tue Aug 05 22:44:03 2008] [notice] =
caught SIGTERM=2C shutting down
>=3B [Tue Aug 05 22:44:04 2008] [notic=
e] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
>=3B [Tue Aug =
05 22:44:04 2008] [notice] Digest: generating secret for digest authenticat=
ion ...
>=3B [Tue Aug 05 22:44:04 2008] [notice] Digest: done
>=
=3B [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
>=3B
&g=
t=3B However=2C I don't see the MOD_PERL entry in ENV=2C and when I print $=
CGI::MOD_PERL value to browser=2C it is 0.
>=3B Not sure why I don't s=
ee this as it *seems* that mod_perl is integrated.
>=3B
>=3B Sys=
tem info:
>=3B
>=3B Apache: 2.2.8
>=3B mod_perl: 2.0.3
&=
gt=3B CGI perl module: 3.28
>=3B perl: v5.8.8
>=3B OS: RedHat Fed=
ora 8 Linux kernel -- 2.6.25.6-27.fc8
>=3B
>=3B A point in the r=
ight direction would be much appreciated.
>=3B
>=3B Thanks.
&=
gt=3B


Reveal your inner athlete and share it with friends o=
n Windows Live. cale=3Den-us&ocid=3DTXT_TAGLM_WLYIA_whichathlete_us' target=3D'_new'>Share =
now!

=

--_f5c026a7-0479-4c92-8b41-24c9e86b2e25_--

Re: installed mod_perl, but no MOD_PERL in ENV

am 06.08.2008 15:39:29 von mpeters

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/intro/start_fast.html

--
Michael Peters
Plus Three, LP

Re: installed mod_perl, but no MOD_PERL in ENV

am 06.08.2008 15:43:10 von Adam Prime

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 =20
> (wrapper: /usr/sbin/suexec)
> [Tue Aug 05 22:44:04 2008] [notice] Digest: generating secret for =20
> 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 =20
> 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 =20
> $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 =20
running under mod_cgi using mod_perl. Have you added anything to your =20
httpd.conf to actually tell your CGI's to run under mod_perl?

see: =20
http://perl.apache.org/docs/2.0/user/intro/start_fast.html#R egistry_Scripts

Adam

Re: installed mod_perl, but no MOD_PERL in ENV

am 07.08.2008 14:37:30 von Jayson Hill

yep... the ever famous typo in the section for enabling my registry scripts.
You'd think I could find the the different in

PerlResponseHandler Modperl::Registry

and

PerlResponseHandler ModPerl::Registry
Thanks for the help!!!





----- Original Message ----
From: "adam.prime@utoronto.ca"
To: modperl@perl.apache.org
Sent: Wednesday, August 6, 2008 8:43:10 AM
Subject: 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/intro/start_fast.html#R egistry_Scripts

Adam