Page 1 of 1

Install Moodle Failed.

Posted: Wed Jul 22, 2020 6:03 pm
by putude
Hi,
I would like to install Moodle (.tgz file)
The installation was failed with the following error
Warning: file_exists(): open_basedir restriction in effect. File(/home/admin/web/MYDOMAIN/moodledata) is not within the allowed path(s): (/home/admin/web/MYDOMAIN/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcube:/var/log/roundcube:/var/lib/roundcube) in /home/admin/web/MYDOMAIN/public_html/install.php on line 329

Warning: is_writable(): open_basedir restriction in effect. File(/home/admin/web/MYDOMAIN) is not within the allowed path(s): (/home/admin/web/MYDOMAIN/public_html:/home/admin/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcube:/var/log/roundcube:/var/lib/roundcube) in /home/admin/web/MYDOMAIN/public_html/install.php on line 333
I found the same problem viewtopic.php?t=12158 but I don't get it.
What should I do to remove the restriction effect to solve this problem?
(I'm using Debian).

Re: Install Moodle Failed.

Posted: Wed Jul 22, 2020 9:09 pm
by grayfolk
Try to use another Web Template, default for example.
Or update open_basedir value via .htaccess.

Re: Install Moodle Failed.

Posted: Thu Jul 23, 2020 12:46 am
by putude
Thank you @grayfolk,
I tried it and it works after reboot the VPS.