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/