LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-16-2011, 10:55 AM   #1
peterson.julia
Member
 
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?


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

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

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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
peterson.julia
Member
 
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
3.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

4. and then yum IT

Last edited by peterson.julia; 04-16-2011 at 11:15 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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

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