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 04-16-2011, 10:55 AM   #1
Registered: Nov 2009
Distribution: All flavors...
Posts: 37

Rep: Reputation: 1
How to update Cent OS PHP 5.1.6. to 5.2.8 and higher?

I'm playing with moodle on my CentOS Linux x86_64 server and well I got this:

Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version 5.1.6).

Are you able to provide me tutorial how to compile from source new php or some working repositories for this. I couldn't find anything decent and working...

Old 04-16-2011, 11:03 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Compiling and installing a newer version of PHP could change other system files to newer versions. That could break other software. I see two options. Find a static precompiled PHP or install a distribution that already has the required version of PHP.

Of the two options I think that I would recommend the second option. You could keep your CentOS and install the other distribution in a virtual machine. CentOS has both Xen and KVM/Qemu. I've used Qemu. It is okay. I found it to be a bit slow but acceptable when running Windows XP and Linux Mint 10 in full screen mode.

Last edited by stress_junkie; 04-16-2011 at 11:04 AM.
Old 04-16-2011, 11:13 PM   #3
Registered: Nov 2009
Distribution: All flavors...
Posts: 37

Original Poster
Rep: Reputation: 1
Lightbulb Solution

So I know that I make it somehow work before but didn't remember how. So luckily I have old test virtual machine and I find this.

It updates to php 5.2.10 meets requirements for moodle to run on CentOS.

1. cd /etc/yum.repos.d/
2. vi CentOS-Testing.repo
name=CentOS-5 Testing

4. and then yum IT

Last edited by peterson.julia; 04-16-2011 at 11:15 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
Howto update Linpus Linux v1.0.5.E OS to higher version lydia.toppin Linux - Newbie 1 04-10-2011 09:45 PM
Weird things with gd and yum mysql on php compile 64 bit cent os 5 centosfan Linux - Server 2 09-16-2009 02:26 PM
Not Able To Login To Gnome session In Cent OS 5 after yum update rajesh.bahl Linux - General 5 12-02-2008 02:37 PM
Upgrading to php 5 in Cent OS thetawaverider Linux - Newbie 1 03-26-2006 03:07 PM
Just installed, mozilla goes slow and lost connection and cant update in control cent dESAaSED Mandriva 4 06-22-2005 10:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 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