Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-25-2006, 10:46 PM   #1
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Rep: Reputation: 15
Upgrading to php 5 in Cent OS

I have a CentOS machine that is running php 4.3.2 and I need to upgrade to a later version, preferably 5.0. I'm a little new to the upgrade process for php. Do I need to compile the new version, or is there a simpler way (like yum) that would keep the same config options that currently exist for 4.3.2?

Old 03-26-2006, 04:07 PM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
If CentOS 4.X -- Use yum and add centosplus to the CentOS yum repo configuration then as root or equivalent; yum update php

If CentOS 3.X then download the source rpm from the CentOS 4.X (php-5.0.4-5.centos4.src.rpm) and do something like (as root or equivalent);

rpmbuild -rebuild php-5.0.4-5.centos4.src.rpm


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
Upgrading PHP with RH 9 rtcary Linux - General 1 09-11-2005 12:27 PM
Upgrading php? rickycen Linux - Newbie 4 09-02-2005 09:24 PM
Upgrading Php dlc2000 Linux - Newbie 0 07-16-2003 08:46 AM
Upgrading php 4.2.2 to 4.3.2 maceking Linux - Software 1 06-30-2003 03:02 PM
upgrading php zurron Linux - Software 6 02-18-2003 08:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

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