php -v keep showing 4.4.7 even after i recompile apache as 5.0.4

gundamz

Well-Known Member
Mar 27, 2002
245
0
316
Hi guys,

php -v keep showing 4.4.7 even after i recompile apache as 5.0.4 via WHM > Apache Update.

I am on the following server:

WHM 11.2.0 cPanel 11.11.0-S16999
CENTOS Enterprise 5 x86_64 - WHM X v3.1.0

----

Code:
./configure [@php-5.0.4]...(--enable-pic --with-libdir=lib64 --prefix=/usr --with-xml --with-mm --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --enable-magic-quotes --with-mm --with-mysqli --with-mysql=/usr --with-snmp --enable-ucd-snmp-hack --with-openssl --enable-discard-path --with-pear --with-pspell --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib).... . . . . . . . . . . . . Done

[COLOR="Red"]configure: error: libXpm.(a|so) not found.[/COLOR]

make [@php-5.0.4]...(-j 8 clean).... Done

make [@php-5.0.4]...(-j 8).... Done

make [@php-5.0.4]...(install).... Done

initfpsuexec: using apache 1.x support
PHP version file has been updated to 4.4.7
Adding cPanel default aliases ...disabled scgi-bin since suexec is installed
Done
Executing /scripts/postbuildapache (if exists)...Done
Configuring perl magic....Off
Configuring php-pear magic....Off
Configuring ruby magic....Off
Configuring php-pecl magic....Off
/etc/rc.d/init.d/httpd start: httpd started
initfpsuexec: using apache 1.x support
    
Attempting to restart httpd 	

Waiting for httpd to restart...

httpd started ok





Build Complete
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi guys,

php -v keep showing 4.4.7 even after i recompile apache as 5.0.4 via WHM > Apache Update.

I am on the following server:

WHM 11.2.0 cPanel 11.11.0-S16999
CENTOS Enterprise 5 x86_64 - WHM X v3.1.0

----

Code:
./configure [@php-5.0.4]...(--enable-pic --with-libdir=lib64 --prefix=/usr --with-xml --with-mm --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --enable-magic-quotes --with-mm --with-mysqli --with-mysql=/usr --with-snmp --enable-ucd-snmp-hack --with-openssl --enable-discard-path --with-pear --with-pspell --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib).... . . . . . . . . . . . . Done

[COLOR="Red"]configure: error: libXpm.(a|so) not found.[/COLOR]

make [@php-5.0.4]...(-j 8 clean).... Done

make [@php-5.0.4]...(-j 8).... Done

make [@php-5.0.4]...(install).... Done

initfpsuexec: using apache 1.x support
PHP version file has been updated to 4.4.7
Adding cPanel default aliases ...disabled scgi-bin since suexec is installed
Done
Executing /scripts/postbuildapache (if exists)...Done
Configuring perl magic....Off
Configuring php-pear magic....Off
Configuring ruby magic....Off
Configuring php-pecl magic....Off
/etc/rc.d/init.d/httpd start: httpd started
initfpsuexec: using apache 1.x support
    
Attempting to restart httpd 	

Waiting for httpd to restart...

httpd started ok





Build Complete

It's not installing 5.0.4. Rather it's failing early in the process and re-installing/restoring 4.4.7 This is the problem:

configure: error: libXpm.(a|so) not found.

It cannot find that library, hence cannot fulfill the requested action.
 

gundamz

Well-Known Member
Mar 27, 2002
245
0
316
I went to omit GD from the list.

No more libxpm error.

Now, this is the new error:

configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore.


php -v still give:

PHP 4.4.7 (cli) (built: Oct 18 2007 09:36:32)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
 

gundamz

Well-Known Member
Mar 27, 2002
245
0
316
How come we couldn't upgrade to php 5 and run into so many problems?
 

katmai

Well-Known Member
Mar 13, 2006
564
4
168
Brno, Czech Republic
i just upgraded to php 5.2.4 and everything went just fine. strongly suggest you go for 5.2.4

on a side note:

yum install libXpm-devel
yum install libXpm

then rebuild apache
 

gundamz

Well-Known Member
Mar 27, 2002
245
0
316
i change my upgrade to 5.2.4 and fix the issue..
look like 5.0.4 doesn't work anymore.