How can I extract the Apache version number?
I would like to then use this number to compare it against a value in a configuration requirement file for a minimum Apache version as part of an automated installation procedure.
I use $ENV{'SERVER_SOFTWARE'} which gives me:Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch16 mod_perl/2.0.2 Perl/v5.8.8)
Is this the format: Apache/2.2.3 consistent across all versions or does it vary e.g. for Apache 1.3 and future versions of Apache?