Page 1 of 1

open_basedir restriction in effect

Posted: Tue Feb 26, 2019 7:17 pm
by dakes12
Hello guys,
I know that there is already discussed this subject, but i cannot solve it....
The error that i get:
yii\base\NotSupportedException: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s) ....

I added in basedir.tpl/stpl the following:
php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/tmp
php_admin_value upload_tmp_dir %home%/%user%/tmp
php_admin_value session.save_path %home%/%user%/tmp

But the problem is still there.
The problem that i have on my website is that the thumbnails are not displayed.
Any help?
Thanks!

Re: open_basedir restriction in effect

Posted: Tue Feb 26, 2019 7:27 pm
by mailarn
why? /tmp
/home/.....

Re: open_basedir restriction in effect

Posted: Tue Feb 26, 2019 8:34 pm
by grayfolk
Did you rebuild web and restart apache for your changes take effect?

Re: open_basedir restriction in effect

Posted: Wed Feb 27, 2019 7:38 pm
by dakes12
yes, i rebuild.. but nothing happens..
I think i found the solution. I'll come back after my vps get alive :) is dead now..

Re: open_basedir restriction in effect

Posted: Mon Mar 04, 2019 8:30 am
by chilediezyandexcom
dakes12 wrote:
Wed Feb 27, 2019 7:38 pm
I think i found the solution. I'll come back after my vps get alive :) is dead now..
How did you finally fix it?

Re: open_basedir restriction in effect

Posted: Sat Mar 30, 2019 2:44 pm
by Spheerys
I have solve my problem by selecting hosting template on the VestaCP website configuration

Re: open_basedir restriction in effect

Posted: Mon Aug 12, 2019 7:23 am
by hiteshchauhan
grayfolk wrote:
Tue Feb 26, 2019 8:34 pm
Did you rebuild web and restart apache for your changes take effect?
How did you fix this issue? stuck in this from last two days

Regards,
HItesh Chauhan

Re: open_basedir restriction in effect

Posted: Thu Aug 15, 2019 1:57 pm
by Spheerys
In fact I have copied the default templates to a new ones, and I have commented out the openbase_dir directive for the websites which had difficulties to run with default template.
I'm selecting it on the website configuration and that is all. Normally you don't have to restart apache2.