Install Moodle (moodledata folder)
Install Moodle (moodledata folder)
I try to install moodle but moodledata folder need special permission.
![Image](https://s31.postimg.org/yel2ppo4b/moode.png)
path for moodle folder: ~/web/koquistudio.com/public_html/moodle
path for moodledata folder: ~/web/koquistudio.com/moodledata
Display Warning in the top of the page:
Warning: file_exists(): open_basedir restriction in effect. File(/home/admin/web/koquistudio.com/moodledata) is not within the allowed path(s): (/home/admin/web/koquistudio.com/public_html:/home/admin/tmp) in /home/admin/web/koquistudio.com/public_html/moodle/install.php on line 333
Warning: is_writable(): open_basedir restriction in effect. File(/home/admin/web/koquistudio.com) is not within the allowed path(s): (/home/admin/web/koquistudio.com/public_html:/home/admin/tmp) in /home/admin/web/koquistudio.com/public_html/moodle/install.php on line 337
Then this message:
Parent directory (/home/admin/web/koquistudio.com) is not writeable. Data directory (/home/admin/web/koquistudio.com/moodledata) cannot be created by the installer.
![Image](https://s31.postimg.org/yel2ppo4b/moode.png)
path for moodle folder: ~/web/koquistudio.com/public_html/moodle
path for moodledata folder: ~/web/koquistudio.com/moodledata
Display Warning in the top of the page:
Warning: file_exists(): open_basedir restriction in effect. File(/home/admin/web/koquistudio.com/moodledata) is not within the allowed path(s): (/home/admin/web/koquistudio.com/public_html:/home/admin/tmp) in /home/admin/web/koquistudio.com/public_html/moodle/install.php on line 333
Warning: is_writable(): open_basedir restriction in effect. File(/home/admin/web/koquistudio.com) is not within the allowed path(s): (/home/admin/web/koquistudio.com/public_html:/home/admin/tmp) in /home/admin/web/koquistudio.com/public_html/moodle/install.php on line 337
Then this message:
Parent directory (/home/admin/web/koquistudio.com) is not writeable. Data directory (/home/admin/web/koquistudio.com/moodledata) cannot be created by the installer.
Re: Install Moodle (moodledata folder)
You can change path for moodledata?
Something like:
~/web/koquistudio.com/public_html/moodledata
Something like:
~/web/koquistudio.com/public_html/moodledata
Re: Install Moodle (moodledata folder)
I try that, but moodle do not accept move the moodledata for security.
Look this:
![Image](https://s32.postimg.org/c9xjj35b9/Capture3.png)
Look this:
![Image](https://s32.postimg.org/c9xjj35b9/Capture3.png)
Re: Install Moodle (moodledata folder)
If so, add additional location in php_value open_basedir
Re: Install Moodle (moodledata folder)
Yes, in /home/admin/conf/web/apache2.conf you can change path to one folder level up.
In that file you can find this:
Simply remove public_html/
So it will be:
And then restart Apache.
@skurudo
It will be good idea that in future versions Vesta allows to edit open_basedir path when you add/edit WEB domain (I mean on the same form when you can turn on/off SSL).
In that file you can find this:
Code: Select all
php_admin_value open_basedir /home/admin/web/YOUR-HOSTNAME.com/public_html:/home/admin/tmp
So it will be:
Code: Select all
php_admin_value open_basedir /home/admin/web/YOUR-HOSTNAME.com:/home/admin/tmp
@skurudo
It will be good idea that in future versions Vesta allows to edit open_basedir path when you add/edit WEB domain (I mean on the same form when you can turn on/off SSL).
Re: Install Moodle (moodledata folder)
@dpeca,
I think a little secure add catalog and don't share all folders in domain folder:
I think a little secure add catalog and don't share all folders in domain folder:
Code: Select all
php_admin_value open_basedir /home/admin/web/YOUR-HOSTNAME.com/public_html:/home/admin/web/YOUR-HOSTNAME.com/moodledata:/home/admin/tmp
It's good idea, added -> https://bugs.vestacp.com/issues/371dpeca wrote:@skurudo
It will be good idea that in future versions Vesta allows to edit open_basedir path when you add/edit WEB domain (I mean on the same form when you can turn on/off SSL).
Last edited by skurudo on Mon Aug 29, 2016 2:51 pm, edited 1 time in total.
Reason: fix
Reason: fix
Re: Install Moodle (moodledata folder)
Yes, just correct line, behind : should be only path, not php_admin_value
This way:
Cheers and thank you for posting idea on https://bugs.vestacp.com/issues/371 :)
This way:
Code: Select all
php_admin_value open_basedir /home/admin/web/YOUR-HOSTNAME.com/public_html:/home/admin/web/YOUR-HOSTNAME.com/moodledata:/home/admin/tmp
Re: Install Moodle (moodledata folder)
Yep, sorry, my bad. U're right.dpeca wrote:Yes, just correct line, behind : should be only path, not php_admin_value
Re: Install Moodle (moodledata folder)
just use the private folder
Re: Install Moodle (moodledata folder)
Hmm.. I don't think it'll work for this case.hcjsy wrote:just use the private folder