500 - Internal server error after PURGE ALL CACHES in server side

Re: 500 - Internal server error after PURGE ALL CACHES in server side

by Parth Kundaliya -
Number of replies: 0

Hi,

I was also facing a similar error on Ubuntu.

With online help, I could figure out that the new cache folder created does not grant access permission to moodle. Setting the ownership and access permissions of your data directory again will resolve the issue.


In my case, the following commands worked (ubuntu):

$ sudo chown -R www-data:www-data /path/to/moodle
$ sudo chown -R www-data:www-data /path/to/moodledata
$ sudo chmod -R 755 /path/to/moodle
$ sudo chmod -R 755 /path/to/moodledata

Average of ratings: Useful (1)