
Good news from Moodle, Moodle support now PHP7 and everything work faster and use less memory. Here is a Howto for boosting your moodle performance. PHP7 is new and supported only by Moodle 3.0.1. But MariaDB 10.1 is also available and fast and can be installed with older version of Moodle.
Here are basic instructions: (Note: it's suggested to backup your DB before any upgrade)
Remove all php packages:
yum remove php\*
Install php7 needed repository:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Install php7 including needed extensions:
yum install php70w php70w-opcache php70w-mbstring php70w-soap php70w-mysql php70w-xmlrpc php70w-gd php70w-dom php70w-intl
upgrade moodle git to 3.0.1: (assuming you are on 3 branch)
cd [your-moodle-git] git pull
Upgrade your Moodle - via web or cli.
MariaDB
Follow the instruction here: (Backup your DB first) https://downloads.mariadb.org/mariadb/repositories/#mirror=datautama&dis...
Tunning mysql/mariadb
wget -O mysqltuner.pl http://mysqltuner.pl
then run:
perl mysqltuner.pl