#18820 [Opn->Fbk]: Configure detects wrong apache version w/ C2Net Stronghold

From: Date: Wed, 14 Aug 2002 21:46:46 +0000
Subject: #18820 [Opn->Fbk]: Configure detects wrong apache version w/ C2Net Stronghold
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16838@lists.php.net to get a copy of this message
ID: 18820 Updated by: sniper@php.net Reported By: jmorton@ezrez.com -Status: Open +Status: Feedback Bug Type: PHP options/info functions Operating System: Debian GNU/Linux PHP Version: 4.2.2 New Comment: Please try the latest (NON-stable) CVS snapshot from http://snaps.php.net/ as I think this is already fixed. Previous Comments: ------------------------------------------------------------------------ [2002-08-08 20:47:08] jmorton@ezrez.com When running C2Net Stronghold 2+, PHP detects the wrong version of Apache (Since Stronghold outputs "Stronghold/3.0" in -v). I saw other bugs similar to this problem, but not quite the same (Such as Bug #16791) A diff of what I did to make it work: (No guarantee this is safe for versions of Stronghold other than 3.0) 3658c3658,3664 < if test "$APACHE_VERSION" -ge 2000000; then --- > APACHE_VENDOR=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f1 -d'/'` > if test "$APACHE_VENDOR" == "Stronghold"; then > APACHE_VERSION_NUMBER=5000000; > else > APACHE_VERSION_NUMBER=2000000; > fi > if test "$APACHE_VERSION" -ge $APACHE_VERSION_NUMBER; then 3661d3666 < -ge 5000000 since RedHat has already released Stronghold 4.0, and it's still based on Apache 1.3.x ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18820&edit=1

« previous php.bugs (#16838) next »