Help - Search - Members - Calendar
Full Version: upgrade php from 5.1.6 to 5.2.10
The Planet Forums > System Administration > Web Hosting
asnf
Hi,

I have a problem with my php installation:
my machine is a RHEL 5, with apache 2.2.3 and php 5.1.6 (those options were installed while installing the system).

due to a lack of gd-library, I have downloaded a new vesrion of php: 5.2.10, and installed it (make, make install...) then restarted apache (service httpd restart).

now the command php -i returns the version 5.2.10 but the function phpversion() returns 5.1.6!!

how can I adjust this?

Thx (sorry for my english).
eth00
Did you compile php with apxs and did a new module get copied into the apache modules directory? If so did you restart apache?

It sounds like you compiled it correctly but it is not being loaded into apache correctly.
asnf
QUOTE (eth00 @ Sep 9 2009, 01:19 PM) *
Did you compile php with apxs and did a new module get copied into the apache modules directory? If so did you restart apache?

It sounds like you compiled it correctly but it is not being loaded into apache correctly.



Thx for reply.

here is the configure options that I have used:
./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-gd' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--without-mysql' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'


apxs is not there and also I did not copied any modules into the apache modules directory (libphp5.so was already there).

should I compile it with apxs?
eth00
Check a phpinfo, it should have the apxs line you need.

libphp5.so is basically the copy of php for apache, if it is not updated then your php won't be updated for the webserver.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.