Error in Confirm path
I have a question about the installation of Moodle in Linux.
I did all things which are given in tutorial but got an error in the localhost/moodle.
I select a language then for confirming path, I got error " Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer".
How can I solve it?
Moodle-Learning-Management-System Course-Administration-in-Moodle 11-12 min 30-40 sec
You can manually create moodledata folder:
chmod 0777 /var/www/moodledata
or give write permission to /var/www folder temporarily:
chmod 0777 /var/www/
and then reset it to 755
Check out official Moodle doc:
sudo chmod 0777 /var/www/
Delete the manually created 'moodledata' folder once and they try again please.
The above command worked, right?
Let me know if u have any further doubts.
No .. please dont create the 'moodledata' folder manually.
Please delete the folder and retry it.
Also, please attach a screenshot of the error here.
For database setting I got following error.
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'moodle'@'localhost' (using password: YES) in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 79
Please send me proper path.
Do you correctly remember the password?
If not, then try logging into mysql as a 'root' user and then either you can reset the password for the user 'moodle' and retry granting proper permissions to user 'moodle'.
You can run the command "CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" only after logging into mysql.
Also, are you using phpmyadmin? If not, they you can try that, it has an easy to use interface.