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
Moodle

How to change Moodle chat beep sound

You can change the beep sound by change the %WWWROOT%/mod/chat/beep.wav file.

You can also disable the beep by deleting this file.

Categories
Mahara Moodle Uncategorized

MAHOODLE Payload not encryptedERROR 1:1:Payload not encrypted

When trying to export an assignment document to Mahara and we get the following error:

Payload not encryptedERROR 1:1:Payload not encryptedDebug: \nError code: failedtopingline 280 of /portfolio/mahara/lib.php: portfolio_export_exception thrown
line 57 of /portfolio/mahara/preconfig.php: call to portfolio_plugin_mahara->send_intent()\n, referer: http://moodle.appi.bme.hu/mod/assign/view.php

Most likely we are behind a firewall. If both Moodle and Mahara servers are behind the firewall simply add the inner IP address of the Mahara server to the Moodle server /etc/hosts file like this:

192.168.x.x<-->mahara.example.org

Or if you have a DNS inside the firewall, check the settings of it.

Categories
Mahara

Mahara Moodle SSO – Unknown error 710

I have got a mail from one of our students, that she can not log in using SSO from Moodle. The Apache log said:

[Thu Oct 10 10:46:38 2013] [warn] [client 192.168.1.2] mod_fcgid: stderr: [WAR] fe (api/xmlrpc/client.php:173) Unknown error occurred: 710: Az al\xc3\xa1\xc3\xadr\xc3\xa1s-ellen\xc5\x91rz\xc3\xa9s sikertelen; az azonos\xc3\xadt\xc3\xa1st feltehet\xc5\x91leg nem \xc3\x96n \xc3\xadrta al\xc3\xa1., referer: http://moodle.appi.bme.hu/
[Thu Oct 10 10:46:38 2013] [warn] [client 192.168.1.2] mod_fcgid: stderr: Call stack (most recent first):, referer: http://moodle.example.org/
[Thu Oct 10 10:46:38 2013] [warn] [client 192.168.1.2] mod_fcgid: stderr: * Client->send("http://moodle.example.org") at /var/www/e-portfolio.appi.bme.hu/docs/auth/xmlrpc/lib.php:119, referer: http://moodle.example.org/
[Thu Oct 10 10:46:38 2013] [warn] [client 192.168.1.2] mod_fcgid: stderr: * AuthXmlrpc->request_user_authorise("f5d3148ab41b07113f47f79458596a5425b73895", "http://moodle.appi.bme.hu") at /var/www/e-portfolio.example.org/docs/auth/xmlrpc/land.php:94, referer: http://moodle.example.org/

The solution was to change the public keys on both Moodle and Mahara. After it the SSO worked again.