Bug 13486: Apache version empty in about page if Apache 2.4
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 17:31:55 +0000 (14:31 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 22 May 2015 12:33:02 +0000 (09:33 -0300)
commit16d7ba09f3705e56ae03beda1dd15111f2583de9
treefa3e49a2b47be6436903b99991ac2f6529eb4352
parentf52084df0e395fdf89d80ca2fd77844273a8cf7c
Bug 13486: Apache version empty in about page if Apache 2.4

This patch makes about.pl query the running Apache version using
the apache2ctl command. I tested it on Apache 2.2 and is backwards
compatible (it is present in both).

To test:
( On an Apache 2.4 setup )
- Go to the about page
=> FAIL: "Apache version:" is empty
- Apply the patch
- Reload the page
=> SUCCESS: "Apache version:" shows the correct version.
- Sign off :-D

If you have an Apache 2.2 setup to try it, verify that there are no regressions
(trivial because you can run apache2ctl manually and verify the first result is the expecte).

Regards

PS. I even changed the order in which Apache version is tested because
most people is using Debian/Ubuntu and it was the last option.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tested with apache 2.2/2.4, no errors

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Only tested with 2.4
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
about.pl