Hello
I want to upgrade Moodle from version 3.3 to 3.7 with centos7 , but i didn't find documentation with centos7, can you give me the rights commands to upgrade moodle .
Thanks in advance
Well i install the last version from git using this file https://docs.moodle.org/37/en/Git_for_Administrators , but when i turn it in the server this error appear :
(Moodle 3.7 or later requires at least PHP 7.1.0 (currently using version 7.0.33). Some servers may have multiple PHP versions installed, are you using the correct executable?)
So i install php 7.2 but still the same error , what should i do ?
After upgrading php did you restart apache service? Required for apache to see new version.
Also, the link shared did not cover git.
Git is better, IHMO, as your code stay where it's at.
So to upgrade from 3.3 to 3.7, mind sharing the git commands you used to acquire the 3.7 code?
A couple of checks:
php -v (that should find php-cli)
and in the code directory,
git branch -a
* should be on moodle_37 branch
fgrep '$release' version.php
'SoS', Ken
Before you do as Howard has suggested, login as admin, go to Server -> Environment. Update the component. Then use the drop down pick list and set to 3.7.
See what moodle says about environment.
'SoS', Ken
Maybe solved ... usually one installs php-common as well php, which does install some extensions:
[root@server cli]# rpm -ql php71w-common |grep zip
/etc/php-zts.d/zip.ini
/etc/php.d/zip.ini
/usr/lib64/php-zts/modules/zip.so
/usr/lib64/php/modules/zip.so
php71w above because the server above uses webtatic for the php repo.
As long as it works ... but if you have errors, consider installing php-common using yum.
'SoS', Ken
yes i already did by this command :
yum install php72w-common