Re: apache version check

2007-06-20 Thread _spitFIRE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Vanasco wrote: > `httpd -v` is the correct approach. > > honestly, your two questions make no sense in context of one another. > why don't you tell us what you're trying to accomplish-- in the big > picture. > then just call `httpd -v` from

Re: apache version check

2007-06-18 Thread John ORourke
Jonathan Vanasco wrote: On Jun 18, 2007, at 5:05 PM, John ORourke wrote: $version = ( $ENV{MOD_PERL_API_VERSION}==2 )?2:1; that won't work, because that requires mod_perl to be loaded. the original poster said: "How do I check what version of Apache is installed from command line (wi

Re: apache version check

2007-06-18 Thread Jonathan Vanasco
On Jun 18, 2007, at 5:05 PM, John ORourke wrote: $version = ( $ENV{MOD_PERL_API_VERSION}==2 )?2:1; that won't work, because that requires mod_perl to be loaded. the original poster said: "How do I check what version of Apache is installed from command line (without using/lodaing mod_

Re: apache version check

2007-06-18 Thread John ORourke
_spitFIRE wrote: John ORourke wrote: use Apache2::ServerUtil; IMHO, doesn't this itself mean that you have Apache 2.x.x installed? Ah, you didn't say you were detecting v1 or v2 - I thought you just wanted to know the .x.x bit! If you're just after a '1' or a '2' try: $versio

Re: apache version check

2007-06-18 Thread Jonathan Vanasco
On Jun 18, 2007, at 12:33 PM, _spitFIRE wrote: When I don't know where apache is installed, how do I do this? I was asking for a way to write a perl script that would give me the version of apache installed, if possible! then why did you specifically ask for a way to do it on the comman

Re: apache version check

2007-06-18 Thread _spitFIRE
John ORourke wrote: > > > use Apache2::ServerUtil; > > IMHO, doesn't this itself mean that you have Apache 2.x.x installed? -- View this message in context: http://www.nabble.com/apache-version-check-tf3940767.html#a11182947 Sent from the mod_perl - General mai

Re: apache version check

2007-06-18 Thread John ORourke
_spitFIRE wrote: When I don't know where apache is installed, how do I do this? I was asking for a way to write a perl script that would give me the version of apache installed, if possible! use Apache2::ServerUtil; $version = Apache2::ServerUtil::get_server_version() hth, John

Re: apache version check

2007-06-18 Thread _spitFIRE
rsion info. > good luck! > > -- View this message in context: http://www.nabble.com/apache-version-check-tf3940767.html#a11179309 Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: apache version check

2007-06-18 Thread pennyyh
Try: $ cd apache_install_dir $ bin/httpd -v This would show you version info. good luck! -Original Message- From: _spitFIRE <[EMAIL PROTECTED]> To: modperl@perl.apache.org Sent: Mon, 18 Jun 2007 10:51 pm Subject: apache version check How do I check what version of Apa

apache version check

2007-06-18 Thread _spitFIRE
How do I check what version of Apache is installed from command line (without using/lodaing mod_perl)? -- View this message in context: http://www.nabble.com/apache-version-check-tf3940767.html#a11177225 Sent from the mod_perl - General mailing list archive at Nabble.com.

apache version check

2007-06-18 Thread _spitFIRE
How do I check what version of Apache is installed from command line (without using/lodaing mod_perl)? -- View this message in context: http://www.nabble.com/apache-version-check-tf3940766.html#a11177224 Sent from the mod_perl - General mailing list archive at Nabble.com.