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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-14-2010, 11:22 PM
|
#1
|
Member
Registered: Apr 2010
Posts: 59
Rep:
|
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.
|
|
|
06-14-2010, 11:34 PM
|
#2
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
Which version of centos ?
There are many suggestions here, but only for Centos 4 or 5.
|
|
|
06-15-2010, 12:02 AM
|
#3
|
Member
Registered: Apr 2010
Posts: 59
Original Poster
Rep:
|
Hi smoker,
im running CentOS release 4.8 (Final).
Thanks in advance
|
|
|
06-15-2010, 12:10 AM
|
#4
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep: 
|
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.
|
|
|
06-15-2010, 12:12 AM
|
#5
|
Member
Registered: Apr 2010
Posts: 59
Original Poster
Rep:
|
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
|
|
|
06-15-2010, 12:14 AM
|
#6
|
Member
Registered: Apr 2010
Posts: 59
Original Poster
Rep:
|
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
|
|
|
06-15-2010, 01:20 AM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673
|
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
|
|
|
06-15-2010, 04:45 AM
|
#8
|
Member
Registered: Apr 2010
Posts: 59
Original Poster
Rep:
|
Hi John,
sorry but i have no idea either. i was hoping i can find some ans here.
|
|
|
06-15-2010, 05:15 AM
|
#9
|
Member
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86
Rep:
|
un install the old vertion and d-load the new php and install...
|
|
|
06-15-2010, 03:23 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673
|
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
|
|
|
All times are GMT -5. The time now is 09:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|