open_basedir restriction error in codeigniter
-
09-10-2019 - |
Question
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
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow