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

basedir.tpl php tmp/ access problem

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
argaios
Posts: 1
Joined: Sat May 24, 2014 9:52 am

basedir.tpl php tmp/ access problem
  • Quote

Post by argaios » Sat May 24, 2014 10:10 am

Firstly, Thank for this wonderful cp. I've been using vesta for 2 weeks. We are using apache basedir. There is openbasedir restriction but tmp file is in /home/user/tmp. The web site cant access this tmp or any. php cant upload file because of there is no writable tmp file.

I think there must be 3 line in basedir.tpl to php can upload files :

Code: Select all

php_admin_value open_basedir '%docroot%:%home%/%user%/web/%domain%/tmp'
php_admin_value upload_tmp_dir %home%/%user%/web/%domain%/tmp
php_admin_value session.save_path %home%/%user%/web/%domain%/tmp
it solves my problem, but how can i create tmp folder automatically in %home%/%user%/web/%domain%/
Top

zapalm
Posts: 6
Joined: Wed Dec 24, 2014 12:41 am

Re: basedir.tpl php tmp/ access problem
  • Quote

Post by zapalm » Wed Dec 24, 2014 12:57 am

here a solution that proposed by me: https://github.com/zapalm/vesta/commit/ ... 639e678590
may be it will be included to the next release.
you can change templates manually. templates dir is /usr/local/vesta/data/templates/web/apache2/

for existing websites you may change apache config of each user and for each it's host: /home/USER/conf/web/apache2.conf
example of a new/changed lines of config:

Code: Select all

php_admin_value open_basedir /home/USER/web/DOMAIN/public_html:/home/USER/tmp
php_admin_value upload_tmp_dir /home/USER/tmp
php_admin_value session.save_path /home/USER/tmp
tested on ubuntu 14.04.
Top

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

Re: basedir.tpl php tmp/ access problem
  • Quote

Post by dpeca » Wed Nov 25, 2015 7:51 pm

Why this fix is not a part of master branch? :(
Known bug, and fix is forked before 1 year, but still not implemented in master? :(

I must patch it on every server every time I install Vesta :(
Top

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

Re: basedir.tpl php tmp/ access problem
  • Quote

Post by skurudo » Thu Nov 26, 2015 1:49 pm

As far I know new templates with this fix will be in new branch - 0.9.9-1

https://bugs.vestacp.com/responses/open ... zopasnosti
Top

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

Re: basedir.tpl php tmp/ access problem
  • Quote

Post by skurudo » Thu Nov 26, 2015 2:48 pm

Hhh... we'll check again.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • 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