Categories
LMS Moodle

Moodle’s Cache (MUC) Configuration Location

First of all, caching is important. A cache is a collection of processed data that is kept on hand and re-used to avoid costly repeated database queries. The default cache setting is quite good but if you are running a big Moodle instance or you using cloud services where the IOPS is limited you need to set another caching approach. For this reason, I had to set up a Redis caching backend.

Categories
Azure LMS Microsoft Moodle Uncategorized

Microsoft Azure Web Application Firewall (WAF) blocks some Moodle calls

Moodle 3.9.11+ was recently installed in Azure Cloud. The installation was not an easy ride because Moodle was not prepared to install the application behind an SSL proxy. You may find the solution for this here: Installing Moodle using SSL Proxy.
I started to use Moodle then I realize that I cannot add an activity or resource. And this is something that without this feature Moodle is useless. So first of all, I checked the Javascript console on the client-side and I’d found that some of the Javascript could not be loaded because the response was 403 Forbidden.
The error message was:
Failed to load resource: the server responded with a status 403 (ModSecurity Action)

Categories
LMS Moodle

Installing Moodle using SSL Proxy

SSL proxy is a transparent proxy that performs Secure Sockets Layer encryption (SSL) and decryption between the client and the server. It performs the SSL encryption and decryption between the client and the server.

SSL Proxy
Origin: avinetworks.com
SSL Proxy (awinetworks.com)
Categories
LMS Moodle

How to remove ‘Data retention summary’ from your Moodle site

Some of the themes does not display this link correctly. If you do not want to modify the theme itself and you do not need the data retention summary in your footer then you can switch it off using the following steps:

  1. Go to Site administration -> Users -> Privacy and policies -> Privacy settings.
  2. Uncheck the ‘Show data retention summary’ checkbox and save the changes.

This will remove the ‘Data retention summary’ text from your footer in your Moodle site.

Cheers,

Categories
e-learning LMS Microsoft Moodle Uncategorized

Moodle – Connecting to an Active Directory with PHP using LDAPs Connection

PHP and LDAP are not good friends. I had always issues connecting to a Microsoft Active Directory with PHP using the php_ldap module. And it was always a pain in the ass to figure out what went wrong or why it does not want to connect.

My Moodle did not want to connect to the Active Directory and of course, the only feedback by Moodle was an empty string. So let’s start the troubleshooting.

Categories
Linux Moodle

Moodle Analytics – Part 3. – Setting up TensorBoard in cPanel to view the Model Results

After evaluating a model you will get the following message in Moodle:

Launch TensorBoard from command line by typing: tensorboard --logdir='/path_to_your_moodledata/models/4/1566208427/evaluation/coreanalyticstime_splittingquarters/logs/1566583192278/tensor'

Installing moodlemlbackend is a prerequisite to view the model results. Read this quick guide on how to setup the prerequisites.

The moodlemlbackend package comes with an older version of TensorFlow package which contains a TensorBoard application where I had problems to view the result. Therefore a new Python virtual environment was installed for running Tensorboard only. With cPanel the Python environment can be set up quickly.

Here is a quick guide on how to launch TensorBoard in cPanel and view the results of the Moodle Analytics models evaluation.

Categories
Moodle

Moodle Analytics – Part 2. – Setting up the Python Machine Learning Backend in Moodle

Once the Python Machine Learning Backend has been installed on the server, it is time to change the Moodle settings for better analytics.

Here are the steps.

Categories
Moodle

Moodle Analytics – Part 1. – Setting up the Python Machine Learning Backend in cPanel

Moodle Analytics machine learning models were introduced in Moodle 3.7.
Moodle currently supports two predictions processors:

  • PHP machine learning backend which comes with the core installation
  • Python machine learning backend which is using TensorFlow and much more accurate than the PHP backend and which is recommended over the PHP by MoodleDev.

Python backend requires python binary and moodlemlbackend python package.

This guide will help to to set up the the backend in cPanel.

Categories
Azure Microsoft Moodle MySQL

Moodle 3.3 with MySQL SSL Connection in the Azure Cloud

Update: Microsoft Azure Database for MySQL: Use PHP (not) to Connect and Query Data article has now some new updates.

Microsoft listened to my words, so I have found a documentation how to connect to Azure Database for MySQL with PHP via SSL connection. This can be found here:
https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl

Of course this is not a complete solution because it did not work for me. So here is my solution.

Categories
LMS Moodle

Moodle How to Avoid brokenfile.php in the Text Editor when Copying Source HTML Code from an External Editor

So the problem is when we would like to copy HTML source from an external editor which contains a images with full paths Moodle will remove the links and shows as deleted.