doc, install via cli (Moodle 3.9.5 (Build: 20210308))

doc, install via cli (Moodle 3.9.5 (Build: 20210308))

by Adi Prasetyo -
Number of replies: 4

PHP Warning:  mkdir(): Permission denied in /var/www/html/moodle/lib/installlib.php on line 98

Warning: mkdir(): Permission denied in /var/www/html/moodle/lib/installlib.php on line 98

Data directory (/var/www/moodledata) cannot be created by the installer.

type value, press Enter to use default value (/var/www/moodledata)


i am following [this](https://docs.moodle.org/310/en/Installing_Moodle#Set_up_your_server)

i have shown the entire /var/www/html/

I expecting that this option can be skip, i can create manually instead process is blocking this step.


Thanks for developing moodle

Average of ratings: -
In reply to Adi Prasetyo

Re: doc, install via cli (Moodle 3.9.5 (Build: 20210308))

by Adi Prasetyo -

i mean i have `chown` the entire /var/www/html/

In reply to Adi Prasetyo

Re: doc, install via cli (Moodle 3.9.5 (Build: 20210308))

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi, you wrote:

>> Data directory (/var/www/moodledata) cannot be created by the installer.

> i mean i have `chown` the entire /var/www/html/

Read the paths carefully. They are at the same level, not in another.
In reply to Visvanath Ratnaweera

Re: doc, install via cli (Moodle 3.9.5 (Build: 20210308))

by Adi Prasetyo -
bypasss that by realpah , I am just kinda reporting.
Happy developing
In reply to Adi Prasetyo

Re: doc, install via cli (Moodle 3.9.5 (Build: 20210308))

by Adi Prasetyo -

i can't edit the post, i mean i have chown the entire /var/www/html.


Later on after completing install via cli I still face this :


Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.


while :





I suspect that unexpected,