I'm stuck upgrading Moodle. During the upgrade process, the Moodle upgrade stops because my PHP version is wrong.
Some info:
Current version: Moodle 3.6.2+ (Build: 20190201)
Trying to upgrade to: Moodle 3.7.2+ (Build: 20191012) Version 2019052002.08
I have an .htaccess file that (I believe) forces the current installation to run PHP 7.
This is the code in the .htaccess file (the only code in there, actually):
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
However, when I try to run the upgrade, I get a blank screen in my browser:
This page isn’t working
example.com is currently unable to handle this request.
HTTP ERROR 500
So then I check my error log to see whether more information is available, but I see no new errors listed.
So then I remove the .htaccess file, which at least gets to the PHP error page.
That page reads:
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?
So now I'm stuck. Any ideas how to proceed from here? Maybe I'm pointing to the PHP version incorrectly? (I used EasyPHP in WHM to write that rule to the .htaccess file, so maybe there's a better way?)
Thanks in advance!