Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Install Moodle (moodledata folder)

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
11 posts
  • 1
  • 2
  • Next
warcos
Posts: 10
Joined: Tue Jul 19, 2016 12:18 pm

Install Moodle (moodledata folder)
  • Quote

Post by warcos » Tue Jul 19, 2016 12:38 pm

I try to install moodle but moodledata folder need special permission.

Image

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Install Moodle (moodledata folder)
  • Quote

Post by skurudo » Wed Jul 20, 2016 1:08 pm

You can change path for moodledata?

Something like:
~/web/koquistudio.com/public_html/moodledata
Top

warcos
Posts: 10
Joined: Tue Jul 19, 2016 12:18 pm

Re: Install Moodle (moodledata folder)
  • Quote

Post by warcos » Thu Jul 21, 2016 3:41 pm

I try that, but moodle do not accept move the moodledata for security.

Look this:

Image
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Install Moodle (moodledata folder)
  • Quote

Post by skurudo » Wed Aug 24, 2016 11:21 am

If so, add additional location in php_value open_basedir
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: Install Moodle (moodledata folder)
  • Quote

Post by dpeca » Sun Aug 28, 2016 11:02 pm

Yes, in /home/admin/conf/web/apache2.conf you can change path to one folder level up.

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
Simply remove public_html/
So it will be:

Code: Select all

php_admin_value open_basedir /home/admin/web/YOUR-HOSTNAME.com:/home/admin/tmp
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).
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Install Moodle (moodledata folder)
  • Quote

Post by skurudo » Mon Aug 29, 2016 8:33 am

@dpeca,
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
dpeca 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).
It's good idea, added -> https://bugs.vestacp.com/issues/371
Last edited by skurudo on Mon Aug 29, 2016 2:51 pm, edited 1 time in total.
Reason: fix
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: Install Moodle (moodledata folder)
  • Quote

Post by dpeca » Mon Aug 29, 2016 2:16 pm

Yes, just correct line, behind : should be only path, not php_admin_value
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
Cheers and thank you for posting idea on https://bugs.vestacp.com/issues/371 :)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Install Moodle (moodledata folder)
  • Quote

Post by skurudo » Mon Aug 29, 2016 2:52 pm

dpeca wrote:Yes, just correct line, behind : should be only path, not php_admin_value
Yep, sorry, my bad. U're right.
Top

hcjsy
Posts: 16
Joined: Tue Jun 07, 2016 3:56 pm

Re: Install Moodle (moodledata folder)
  • Quote

Post by hcjsy » Mon Nov 14, 2016 9:26 am

just use the private folder
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Install Moodle (moodledata folder)
  • Quote

Post by skurudo » Wed Dec 07, 2016 7:55 am

hcjsy wrote:just use the private folder
Hmm.. I don't think it'll work for this case.
Top


Post Reply
  • Print view

11 posts
  • 1
  • 2
  • Next

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password