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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
aryahmad
Posts: 5
Joined: Fri Jan 06, 2017 6:34 pm

open_basedir restriction
  • Quote

Post by 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
Top

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

Re: open_basedir restriction
  • Quote

Post by 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
Top

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

Re: open_basedir restriction
  • Quote

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


Post Reply
  • Print view

3 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
 

 

Login  •  Register

I forgot my password