QuotesUK Posted September 20, 2018 Share Posted September 20, 2018 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 More sharing options...
bsmither Posted September 20, 2018 Share Posted September 20, 2018 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 More sharing options...
QuotesUK Posted September 21, 2018 Author Share Posted September 21, 2018 Thank you bsmither, the third article I read had a working solution. https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths Essentially, rather than specifying allowed paths you actually change open_basedir to "none" (service plan > php settings) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.