I encountered an error when trying to run a project developed in Moodle. "Invalid permissions detected" is displayed when trying to create a directory. "Turn on debugging for more details." error. I've run this command "chmod 0777 /var/www/html/e-learning" to enable write permissions but still doesn't work. Can anyone advise? Thanks.
This may be the data directory rather than the web directory
https://docs.moodle.org/401/en /Installing_Moodle#Create_the_.28moodledata.29_data_directory
Look for this value in
config.php
Then change permissions
Also add it to
config.php
You may also need to change the ownership of the data directory
Also, using 777 for web directories is deprecated, please use 755
instead