Jump to content
QuotesUK

open_basedir restriction in effect

Recommended Posts

My site is working (latest version, php7.2 etc) but my server logs are full of warnings like this...

2018-09-20 18:39:03	Warning	1.2.3.4		mod_fcgid: stderr: PHP Warning: file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/opt/plesk/php/7.2/share/pear/smarty_internal_data.class.php) is not within the allowed path(s): (/var/www/vhosts/example.co.uk/:/tmp/) in /var/www/vhosts/example.co.uk/httpdocs/classes/autoloader.class.php on line 89				Apache error

I am hosting on CentOS7 with Apache and Plesk. How do I fix this?

Share this post


Link to post
Share on other sites

The solution may be a responsibility that only your hosting provider can put into effect.

If you manage your own server, thus you are your own server admin. In that case, allow me to mention that a search for
"include_path" "open_basedir" site:stackoverflow.com
got me a number of conversations on what this is and how to resolve it.

It seems to me that /opt/plesk/php/7.2/share/pear/ is in the PHP.INI file under "include_path", and that CubeCart is trying to access it (actually, this is not a bad thing).

However, for your purposes, perhaps PHP.INI's "include_path" can be edited (or overwritten by a local PHP.INI file) to remove unnecessary paths.

Edited by bsmither

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×