Page 1 of 1

install new PHP version over old one

Posted: Wed Feb 18, 2004 7:02 am
by pit
Hello,

I have some trouble installing PHP in my RH AS 3 server. First I installed version 4.3.2. That worked perfectly. I wanted to recongigure and decided to upgrade to 4.3.4. I installed it without uninstalling 4.3.2 The problem is that phpinfo() still reports all the 4.3.2 stuff. And when I ask linux 'whereis php' it gives me two two different bin-directories where php is in (I know I made a mess of it). For both versions the command 'php -v' which reports the version gives 4.3.4.
Did I forget to do something?

thanx a lot

PHP old to new version!

Posted: Tue Jun 22, 2004 12:59 pm
by d-m
Why don't you compile all again .. than you 'll be shure that U got the write version! :lol:

Like these: (In these case is Apache + SSL + PHP + Postgres + Mysql + DB2 )

You can remove the databases that you do not use.
------------


-- LIB --
vim /etc/ld.so.conf
add line: /opt/IBM/db2/V8.1/lib
execute: ldconfig
-- END LIB --

--- APACHE ---
cd ../mod_ssl-2.8.18-1.3.31
./configure --enable-module=so --with-apache=../apache_1.3.31 --with-ssl=../openssl-0.9.7d
cd ../apache_1.3.31/
make
make certificate TYPE=custom
make install
--- END APACHE ---

OBS: CRIPT the CA.key
DO NOT CRYPT server.key

-- PHP --
cd ../php-4.3.7
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql --with-zip=/usr/local/lib --with-ibm-db2=/opt/IBM/db2/V8.1
make
make install
-- END PHP ---


-- APACHE EDIT TO RUN DB2 --
vim /usr/local/apache/bin/apachectl
add line: . /home/db2inst1/sqllib/db2profile
-- END APACHE EDIT TO RUN DB2 --