Jump to content

open_basedir restriction in effect


QuotesUK

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?

Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...