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
  • Search

open_basedir restriction in effect

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
samuelcdossantos
Posts: 1
Joined: Tue Aug 09, 2016 4:34 pm

open_basedir restriction in effect
  • Quote

Post by samuelcdossantos » Tue Aug 09, 2016 4:41 pm

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

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

Re: open_basedir restriction in effect
  • Quote

Post by skurudo » Thu Aug 11, 2016 12:29 pm

samuelcdossantos wrote: How to solve ?
You can add additional folder in open_basedir

Code: Select all

php_admin_value open_basedir /home/admin/web/**********/public_html:/home/admin/tmp:/path/to/my/another/folder
or if you don't like security - disable open_basedir (not recommend this, but if you like you can)
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by plutocrat » Mon Jan 30, 2017 9:49 am

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! :-)
Top

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

Re: open_basedir restriction in effect
  • Quote

Post by skurudo » Mon Jan 30, 2017 6:01 pm

plutocrat wrote:Note ... if you're using SSL, you'll ALSO need to edit
/home/admin/conf/web/sapache2.conf
Yep, but it's a little better than no open_basedir at all ;-)
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by plutocrat » Wed Feb 01, 2017 8:52 am

skurudo wrote:Yep, but it's a little better than no open_basedir at all ;-)
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.
Alternatively you can make some custom templates in /usr/local/vesta/data/templates/web/apache2 and select those in the website template selection box.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • 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