Re: How to find out if mod_perl is running

2003-02-17 Thread Stas Bekman
Gazi, Nasser (London) wrote:

I have a very simple question (please excuse me if it is too simple).

I need to find out if of one of my Linux servers is running mod_perl, and if
so, which version it is running. Any suggestions as to how I can do this?


Use the guide:
http://perl.apache.org/docs/1.0/guide/install.html#How_can_I_tell_whether_mod_perl_is_running_


__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: How to find out if mod_perl is running

2003-02-17 Thread Serguei Trouchelle
Gazi, Nasser (London) wrote:

I have a very simple question (please excuse me if it is too simple).

I need to find out if of one of my Linux servers is running mod_perl, and if
so, which version it is running. Any suggestions as to how I can do this?


perldoc mod_perl


GATEWAY_INTERFACE
The standard CGI environment variable GATEWAY_INTERFACE is set to
"CGI-Perl/1.1" when running under mod_perl.

MOD_PERL
The environment variable `MOD_PERL' is set so scripts can say:

 if(exists $ENV{MOD_PERL}) {
 #we're running under mod_perl
 ...
 }
 else {
 #we're NOT running under mod_perl
 }



--
Serguei Trouchelle
  http://www.isd.dp.ua/




Re: How to find out if mod_perl is running

2003-02-17 Thread Pierre Smolarek
lynx -head http://www.yourdomainname.com

if you have lynx that is

- Original Message -
From: "Gazi, Nasser (London)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 17, 2003 5:30 PM
Subject: How to find out if mod_perl is running


> I have a very simple question (please excuse me if it is too simple).
>
> I need to find out if of one of my Linux servers is running mod_perl, and
if
> so, which version it is running. Any suggestions as to how I can do this?
>
> Thanks,
> NG