(Dec 29) New version 0.9.8-18 has been released

open_basedir restriction

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
Posts: 5
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

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


Code: Select all


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

Posts: 5
Joined: Fri Jan 06, 2017 6:34 pm

Re: open_basedir restriction

Postby aryahmad » Tue Sep 26, 2017 9:48 am

Dear peterbrinck ,
Thanks for your reply ,

actually there is no files apache2.conf and sapache2.conf in those path you provide !
in the path /home/user1/conf/web/ there is only the domain folders , if I am required to create the required files what shall I write there ?

Thanks .

Return to “Web Server”

Who is online

Users browsing this forum: No registered users and 2 guests