הודעת שגיאה

  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; views_display has a deprecated constructor ב-require_once() (שורה 3157 מ-/ssd/www/sites/openapp.co.il/html/includes/bootstrap.inc).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; views_many_to_one_helper has a deprecated constructor ב-require_once() (שורה 113 מ-/ssd/www/sites/openapp.co.il/html/sites/all/modules/ctools/ctools.module).

Centos7 + moodle 3.0.1 + php7 + mariaDB 10.1 - Boost your moodle performance

ידידיה קליין

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

בניין בינת הר חוצבים ירושלים 97787 רח' נתנזון 5/2 026310246 | 0526071135 | 0524767193 | sales@openapp.co.il‬‏