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.
basedir.tpl php tmp/ access problem
basedir.tpl php tmp/ access problem
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 :
it solves my problem, but how can i create tmp folder automatically in %home%/%user%/web/%domain%/
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
Re: basedir.tpl php tmp/ access problem
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:
tested on ubuntu 14.04.
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
Re: basedir.tpl php tmp/ access problem
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 :(
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 :(
Re: basedir.tpl php tmp/ access problem
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
https://bugs.vestacp.com/responses/open ... zopasnosti
Re: basedir.tpl php tmp/ access problem
Hhh... we'll check again.