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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...