Upgrading from 3.0 to 3.5; how to point to PHP 5.6.5?

Upgrading from 3.0 to 3.5; how to point to PHP 5.6.5?

by Erin Billy -
Number of replies: 3

Hi, all. Just going through a periodic update.

I'm stuck on this message:

Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version 5.5.38). Some servers may have multiple PHP versions installed, are you using the correct executable?

I'm running a LAMP server with WHM/cPanel, and it shows me that I have php54, php55, and php56 installed. Not sure whether php56 will work, nor am I sure how to point to that file.

I did see this post, but I'm not sure it helps, mainly because I'm not sure how to find the location of my PHP module.

To save a click, that person's solution was:

Add the LoadModule command to your httpd.conf and point it to the php56 module from RHSCL:

LoadModule php5_module /opt/rh/httpd24/root/usr/lib64/httpd/modules/librh-php56-php5.so

Thanks so much in advance!

Average of ratings: -
In reply to Erin Billy

Re: Upgrading from 3.0 to 3.5; how to point to PHP 5.6.5?

by William Stewart -

If you are using Easy Apache 4, you can simply find the MultiPHP Manager in Cpanel (or in WHM as Root) and select the php version you want to use with your domain, and save. That's about all it takes. Also, if you have managed hosting, you could also ask them to switch it over.

Average of ratings: Useful (1)
In reply to Erin Billy

Re: Upgrading from 3.0 to 3.5; how to point to PHP 5.6.5?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moodle 3.5 requires a minimum of PHP 7.0.  So, even if you work out how to switch it looks like you're still going to have a problem. 

Average of ratings: Useful (1)
In reply to Erin Billy

Re: Upgrading from 3.0 to 3.5; how to point to PHP 5.6.5?

by Erin Billy -

Thanks, that did the trick.

I used EasyApache 4 (on WHM) to install PHP 7, and then cPanel (on the site) to enable PHP 7 for that site.

Now I have to update a bunch of stuff to get it all working.