-   Linux - Newbie (
-   -   How to update Cent OS PHP 5.1.6. to 5.2.8 and higher? (

peterson.julia 04-16-2011 11:55 AM

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

Julie ;)

stress_junkie 04-16-2011 12:03 PM

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.

peterson.julia 04-17-2011 12:13 AM

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

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