install new PHP version over old one

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
pit
Forum Newbie
Posts: 1
Joined: Wed Feb 18, 2004 7:02 am

install new PHP version over old one

Post 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
User avatar
d-m
Forum Commoner
Posts: 31
Joined: Fri Aug 29, 2003 4:24 pm
Location: Rio de Janeiro - RJ - Brasil

PHP old to new version!

Post 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 --
Post Reply