centurion-project/Centurion — Issue #7: install: apache version string checking blocks
Author: myselfhimself
Created: 2011-12-15 12:05:04+00:00
State: open

Hello,

my server install is the following:

Server version: Apache/2.2.11 (Ubuntu)
Server built: Aug 18 2009 14:26:31

PHP 5.3.3-0.dotdeb.0 with Suhosin-Patch (cli) (built: Jul 24 2010 01:12:50)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

After setting up Centurion installation as described in http://wiki.centurion-project.org/Installing_Centurion_/_Project_setup_and_Third_party_softwares_configuration

when going to http://mycenturionisntall/status/
I managed to fix all my problems in the righthand checklist, except for Apache : "! Apache 2 version is" (and no version gets printed). With this showing up, I also have the message "You Centurion installation is not good" instead of the "..seems to be good".

Looking in ./public/status/Check.php and checking how _apacheVersion is set, I found that my $SERVER['SERVER_NAME'] version string is "Apache/2.2" (instead maybe of "Apache 2.2"). For your information, apache_get_version() yields that same string on my install.

Some examples of strings for that version are shown here in the comment : http://php.net/manual/fr/function.apache-get-version.php
Seeing the last string mentioned in the thread: "Apache", It seems that it will always happen that for one server or another, Apache's version will not be retrievable at all.

In order for Check->hasError() to return true, one should maybe have 'code' => 1 (instead of 0), in _checkApache():75.
Anyway, if PHP 5.3 is detected, one may assume that the webserver is recent enough.