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

open_basedir restriction in effect

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
dakes12
Posts: 3
Joined: Fri Mar 16, 2018 3:54 pm

Os: CentOS 6x
Web: apache + nginx
open_basedir restriction in effect
  • Quote

Post by dakes12 » Tue Feb 26, 2019 7:17 pm

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

mailarn
Posts: 46
Joined: Tue Feb 12, 2019 2:38 pm

Os: CentOS 6x
Web: apache
Re: open_basedir restriction in effect
  • Quote

Post by mailarn » Tue Feb 26, 2019 7:27 pm

why? /tmp
/home/.....
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: open_basedir restriction in effect
  • Quote

Post by grayfolk » Tue Feb 26, 2019 8:34 pm

Did you rebuild web and restart apache for your changes take effect?
Top

dakes12
Posts: 3
Joined: Fri Mar 16, 2018 3:54 pm

Os: CentOS 6x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by dakes12 » Wed Feb 27, 2019 7:38 pm

yes, i rebuild.. but nothing happens..
I think i found the solution. I'll come back after my vps get alive :) is dead now..
Top

chilediezyandexcom
Posts: 1
Joined: Sat Mar 02, 2019 9:06 am

Os: CentOS 6x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by chilediezyandexcom » Mon Mar 04, 2019 8:30 am

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

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by Spheerys » Sat Mar 30, 2019 2:44 pm

I have solve my problem by selecting hosting template on the VestaCP website configuration
Top

hiteshchauhan
Posts: 3
Joined: Mon Aug 12, 2019 7:20 am

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

Post by hiteshchauhan » Mon Aug 12, 2019 7:23 am

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
Last edited by imperio on Thu Aug 15, 2019 9:28 am, edited 1 time in total.
Reason: Links to another sites is not allowed
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: open_basedir restriction in effect
  • Quote

Post by Spheerys » Thu Aug 15, 2019 1:57 pm

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


Post Reply
  • Print view

8 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
 

 

cron

Login  •  Register

I forgot my password