Page 1 of 1

open_basedir restriction

Posted: Sat Sep 09, 2017 5:06 pm
by aryahmad
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/ in /home/user1/web/ 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

Re: open_basedir restriction

Posted: Thu Sep 14, 2017 1:28 pm
by peterbrinck
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

Re: open_basedir restriction

Posted: Tue Sep 26, 2017 9:48 am
by aryahmad
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 .