We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
open_basedir restriction in effect
-
- Posts: 1
- Joined: Tue Aug 09, 2016 4:34 pm
open_basedir restriction in effect
Good afternoon, I am Brazilian.
I have a problem on my server (Ubuntu 15.10 x64) in PHP upload. Erro(I hid the domain for security reasons)r:
Message: copy(): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/admin/web/**********/public_html:/home/admin/tmp)
Check that in the /home/admin/conf/web/apache2.conf php_admin_value is as follows:
<Directory /home/admin/web/cloudone.eti.br/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/admin/web/**********/public_html:/home/admin/tmp
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value session.save_path /home/admin/tmp
</Directory>
How to solve ?
I have a problem on my server (Ubuntu 15.10 x64) in PHP upload. Erro(I hid the domain for security reasons)r:
Message: copy(): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/admin/web/**********/public_html:/home/admin/tmp)
Check that in the /home/admin/conf/web/apache2.conf php_admin_value is as follows:
<Directory /home/admin/web/cloudone.eti.br/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/admin/web/**********/public_html:/home/admin/tmp
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value session.save_path /home/admin/tmp
</Directory>
How to solve ?
Re: open_basedir restriction in effect
You can add additional folder in open_basedirsamuelcdossantos wrote: How to solve ?
Code: Select all
php_admin_value open_basedir /home/admin/web/**********/public_html:/home/admin/tmp:/path/to/my/another/folder
Re: open_basedir restriction in effect
Note ... if you're using SSL, you'll ALSO need to edit
/home/admin/conf/web/sapache2.conf
Just wasted a couple of hours on that! :-)
/home/admin/conf/web/sapache2.conf
Just wasted a couple of hours on that! :-)
Re: open_basedir restriction in effect
Yep, but it's a little better than no open_basedir at all ;-)plutocrat wrote:Note ... if you're using SSL, you'll ALSO need to edit
/home/admin/conf/web/sapache2.conf
Re: open_basedir restriction in effect
Sure. Just thought I'd mention it to help someone out in the future. I've also just realised (still learning ...), that if you ever regenerate the configs, you'll lose those changes, so you'll have to re-apply them.skurudo wrote:Yep, but it's a little better than no open_basedir at all ;-)
Alternatively you can make some custom templates in /usr/local/vesta/data/templates/web/apache2 and select those in the website template selection box.