Page 1 of 1

file_exists(): open_basedir restriction in effect.

Posted: Wed Jul 12, 2017 10:53 am
by mhpc
Hi,

I just installed VestaCP on my VPS server and it's awesome. but I got a problem with my WordPress site. it's showing this error.

Code: Select all

file_exists(): open_basedir restriction in effect.
I searched a little bit about this problem and applied below fixes but none of those worked.

I tried to add the below codes to /usr/local/vesta/data/templates/web/apache2/basedir.stpl file but those are already there.

Code: Select all

php_admin_value open_basedir %docroot%:%home%/%user%/tmp

Code: Select all

php_admin_value upload_tmp_dir %home%/%user%/tmp

Code: Select all

php_admin_value session.save_path %home%/%user%/tmp
Also, I tried to disable the open_base settings in the php.ini file.

Code: Select all

open_basedir = none
My site's some plugins and media library not working correctly. Can somebody help to figure this out?

Thanks

Re: file_exists(): open_basedir restriction in effect.

Posted: Wed Jul 12, 2017 9:21 pm
by demlasjr
Why are you using basedir template mate ? You can use another one, also more optimized, like phpfcgid. Basedir template includes basedir restriction, so no reason to use it or edit it...just jump it.