open_basedir restriction error in codeigniter

2019-09-02 04:45发布

问题:

I can't figure out how to fix this:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. 
File(./codeigniter/logs/log-2010-11-12.php) is not within the allowed path(s): 
(/var/www/vhosts/example.com/httpdocs:/tmp) in 
/var/www/vhosts/example.com/httpdocs/codeigniter/libraries/Log.php on line 92

回答1:

open_basedir means php is restricted to the folders it can include files from. Basically the file you are trying to get cannot be accessed, you'll need to move it or change your php settings