Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-14-2010, 11:22 PM   #1
Registered: Apr 2010
Posts: 59

Rep: Reputation: 0
Upgrade from PHP Version 4.3.9 to PHP 5.2 on CentOS

How can I upgrade php 4.3.9 to php 5.2 on CentOS?

I tried yum update php / yum install php but the php version still remain as 4.3.9.

please advise.
Thank you.


Last edited by nuttynibbles; 06-14-2010 at 11:32 PM.
Old 06-14-2010, 11:34 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Which version of centos ?
There are many suggestions here, but only for Centos 4 or 5.
Old 06-15-2010, 12:02 AM   #3
Registered: Apr 2010
Posts: 59

Original Poster
Rep: Reputation: 0
Hi smoker,

im running CentOS release 4.8 (Final).

Thanks in advance
Old 06-15-2010, 12:10 AM   #4
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Do you know the implication of upgrading to PHP5? Some of your pages may not work anymore or not work as expected. My best advice would be to upgrade to CentOS 5.5 (by making a backup first, of course). The 4 series is getting old and is in the last support phase. To get newer software, you should use a newer distribution. CentOS 5 come with PHP 5.1, but packages for 5.2 are available in third party repositories.
Old 06-15-2010, 12:12 AM   #5
Registered: Apr 2010
Posts: 59

Original Poster
Rep: Reputation: 0
Hi smoker,

i did this which results the following:
# yum list | grep php
Repository base is listed more than once in the configuration
php.i386 4.3.9-3.29 installed
php-gd.i386 4.3.9-3.29 installed
php-ldap.i386 4.3.9-3.29 installed
php-mysql.i386 4.3.9-3.29 installed
php-odbc.i386 4.3.9-3.29 installed
php-pear.i386 4.3.9-3.29 installed
php-pgsql.i386 4.3.9-3.29 installed
php.i386 5.2.10-1.el5.centos c5-testing
php-bcmath.i386 5.2.10-1.el5.centos c5-testing
php-cli.i386 5.2.10-1.el5.centos c5-testing
php-common.i386 5.2.10-1.el5.centos c5-testing
php-dba.i386 5.2.10-1.el5.centos c5-testing
php-dbase.i386 5.2.9-2.el5.centos.3 c5-testing
php-debuginfo.i386 5.2.10-1.el5.centos c5-testing
php-devel.i386 5.2.10-1.el5.centos c5-testing
php-domxml.i386 4.3.9-3.29 update
php-extras-debuginfo.i386 5.2.9-2.el5.centos.3 c5-testing
php-gd.i386 5.2.10-1.el5.centos c5-testing
php-imap.i386 5.2.10-1.el5.centos c5-testing
php-ldap.i386 5.2.10-1.el5.centos c5-testing
php-mbstring.i386 5.2.10-1.el5.centos c5-testing
php-mcrypt.i386 5.2.9-2.el5.centos.3 c5-testing
php-mhash.i386 5.2.9-2.el5.centos.3 c5-testing
php-mssql.i386 5.2.9-2.el5.centos.3 c5-testing
php-mysql.i386 5.2.10-1.el5.centos c5-testing
php-ncurses.i386 5.2.10-1.el5.centos c5-testing
php-odbc.i386 5.2.10-1.el5.centos c5-testing
php-pdo.i386 5.2.10-1.el5.centos c5-testing
php-pear.noarch 1:1.8.1-2.el5.centos c5-testing
php-pgsql.i386 5.2.10-1.el5.centos c5-testing
php-readline.i386 5.2.9-2.el5.centos.3 c5-testing
php-snmp.i386 5.2.10-1.el5.centos c5-testing
php-soap.i386 5.2.10-1.el5.centos c5-testing
php-suhosin.i386 0.9.25-1.el5.centos c5-testing
php-suhosin-debuginfo.i386 0.9.25-1.el5.centos c5-testing
php-tidy.i386 5.2.9-2.el5.centos.3 c5-testing
php-xml.i386 5.2.10-1.el5.centos c5-testing
php-xmlrpc.i386 5.2.10-1.el5.centos c5-testing

wat does it mean by c5-testing?
most of the results shown were yum update/install php but it doesn't work.

tks again in adv
Old 06-15-2010, 12:14 AM   #6
Registered: Apr 2010
Posts: 59

Original Poster
Rep: Reputation: 0
hi Elv13,
tks for the heads up

the server im currently running to not have any application running so im quite safe =)

your idea of upgrading centos is an alternative which i most prob will take. however, if i wanna upgrade php 4 to php 5 without doing an upgrade of centos, wat are the ways?

Old 06-15-2010, 01:20 AM   #7
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,659

Rep: Reputation: Disabled
wat does it mean by c5-testing?
so you missed 2d grade ? and did not learn to read.
that is for cent 5 ( and TESTING at that) a very big no-no.

you can not install cent 5 rpm's on cent 4 computer

that will KILL the cent 4 install

I would back up all important data
DATA only none of the OS
then install the current CentOS 5.5
Old 06-15-2010, 04:45 AM   #8
Registered: Apr 2010
Posts: 59

Original Poster
Rep: Reputation: 0
Hi John,

sorry but i have no idea either. i was hoping i can find some ans here.
Old 06-15-2010, 05:15 AM   #9
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86

Rep: Reputation: 19
un install the old vertion and d-load the new php and install...
Old 06-15-2010, 03:23 PM   #10
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,659

Rep: Reputation: Disabled
nuttynibbles, i was having a bad day

you might want to read the CentOS wiki

on cent 4.8 it is ( for the most part) imposable .
upgrade the cent install to the CURRENT CentOS 5.5
Old 06-15-2010, 03:35 PM   #11
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,918

Rep: Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026
php-5.1.6-3.el4s1.10 : The centosplus.repo

php-5.2.13-jason.1 : Jason Litka repo
( )

php-5.3.2-1.el4.remi , php-5.3.1-1.el4.remi : Remi repo ..
> remi-release-4.rpm


Last edited by knudfl; 06-15-2010 at 03:37 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update PHP on CentOS - missing dependency php-common AndyMillne Linux - Server 7 05-21-2013 07:34 AM
Compiling PHP 5.1.6 from source - php -v and phpinfo() version discrepancy nicky77 Linux - Software 7 03-05-2010 03:44 PM
Centos 5.2 running Apache 2 and PHP 4 cannot display info.php codenjanod Linux - Server 2 08-19-2008 03:00 AM
php upgrade almost worked - apache still uses old version monk.e.boy Linux - Server 4 02-10-2007 12:11 PM
PHP Upgrade - still at the old version Seventh Linux - Newbie 1 12-21-2004 04:40 PM

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration