LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hi,
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.

Regards

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

Rep: Reputation: 250Reputation: 250Reputation: 250
Which version of centos ?
There are many suggestions here, but only for Centos 4 or 5.
 
Old 06-15-2010, 12:02 AM   #3
nuttynibbles
Member
 
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
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
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
nuttynibbles
Member
 
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
nuttynibbles
Member
 
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?

regards
 
Old 06-15-2010, 01:20 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
nuttynibbles
Quote:
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
nuttynibbles
Member
 
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
subho.d
Member
 
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
Location: A2 area Mi.
Posts: 17,673

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

you might want to read the CentOS wiki
http://wiki.centos.org/

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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

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

php-5.2.13-jason.1 : Jason Litka repo http://www.jasonlitka.com/
( http://www.jasonlitka.com/media/EL4/ )

php-5.3.2-1.el4.remi , php-5.3.1-1.el4.remi : Remi repo ..
http://rpms.famillecollet.com/enterprise/4/
http://rpms.famillecollet.com/enterp...-release-4.rpm
> remi-release-4.rpm

.

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 AM.

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