Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install moodle and configure moodledata folder?

I am trying to install moodle on my server. I did unpack moodle package in public html folder. This moodle folder has 755 access rights set.

Then I created moodledata folder in the same public_html folder and used 777 access right. Then I tried to run install, but I always get error: Data directory (/home/studentai/***/data) cannot be created by the installer.

But I created it manually. So where is the problem?

like image 970
Shien Avatar asked Jan 18 '23 05:01

Shien


1 Answers

Moodledata should be above public_html in the folder structure and will throw an error if not. You should have an opportunity to manually enter the path to it as part of the installer process.

The path above has asterisks in it, which is definitely not good. Did you add these?

Also, the Moodledata directory should have more restrictive permissions than 777 on a shared server.

like image 161
Matt Gibson Avatar answered Jan 31 '23 02:01

Matt Gibson