For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > June 2005 > PHP on RH9 still shows old version after upgrade









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP on RH9 still shows old version after upgrade
Robert E. Kudyba

2005-06-03, 3:57 pm

cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

which php
/usr/local/bin/php

/usr/local/bin/php -v
PHP 4.3.11 (cli) (built: Jun 2 2005 16:41:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.7, Copyright (c) 2003-2005, by Zend
Technologies
with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend
Technologies

whereis php
php: /etc/php.ini /usr/local/bin/php /usr/local/lib/php
/usr/local/lib/php.ini

And this is ok considering they're just soft links:
PHPRC /etc/php.ini
/etc/php.ini -> /usr/local/lib/php.ini
lrwxrwxrwx 1 root root 27 Jun 3 10:46
/usr/local/lib/php.ini -> /usr/local/Zend/etc/php.ini

the phpinfo page still shows:
PHP Version 4.3.8

And this shows to the updated php.ini file:
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini

I've stopped/started Apache, even upgrading it, and on a side note
installed MySQL 4.1 with MySQL enabled. Even restarted which of course,
didn't change a thing. No errors in the apache error logs either.

Also, on the phpinfo page is this, which were not the options I used to
compile PHP:
Configure Command './configure' '--host=i386-redhat-linux'
'--build=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-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr'
'--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared'
'--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr'
'--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal'
'--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex'
'--with-apxs2=/usr/sbin/apxs'

Where is this "hiding" in the OS?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com