open_basedir restriction

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
aryahmad
Posts: 4
Joined: Fri Jan 06, 2017 6:34 pm

open_basedir restriction

Postby aryahmad » Sat Sep 09, 2017 5:06 pm

Dears ,
I have a VestaCP installation running on Ubuntu 16.04 .
I have a wordpress plugin that gives the folowing error

Code: Select all

Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/user1/web/mywebsite.com/public_html:/home/user1/tmp) in /home/user1/web/mywebsite.com/public_html/wp-content/plugins/reportbuilder/lib/PHPWord/TemplateProcessor.php on line 76

can you please help me on how I should fix this error and remove open_basedir restriction on the tmp folder and get the plugin to work?

Thanks alot

peterbrinck
Posts: 15
Joined: Wed Jun 24, 2015 8:13 am

Re: open_basedir restriction

Postby peterbrinck » Thu Sep 14, 2017 1:28 pm

The /tmp folder should be default be allowed in open_basedir.

But you can check by editing

Code: Select all

/home/user1/conf/web/apache2.conf
AND

Code: Select all

/home/user1/conf/web/sapache2.conf


And then look for your domain and change/set the paths in php_admin_value open_basedir


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 11 guests