CodeIgniter Forums
Image upload - open_basedir restriction in effect - Help! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Image upload - open_basedir restriction in effect - Help! (/showthread.php?tid=1605)



Image upload - open_basedir restriction in effect - Help! - Krone1232 - 03-25-2015

I have a simple cms which is written in Codeigniter framework. It has worked just fine in many projects and it still works ok on my local machine. But when i put my recent web site online (server php version 5.5.17) and i try to upload an image, i get this error:

Message: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.:/var/www/vhosts/web-test-host.tk:/tmp:/usr/share/php:/usr/share/pear:/var/lib/php/session) Filename: libraries/Image_lib.php

I have tried everything, permissions are all set up, i have even set the open_basedir value to none and it still doesn't want to upload an image, neither doesn't get a name of the image.

Thank you for your help!


RE: Image upload - open_basedir restriction in effect - Help! - Rufnex - 03-25-2015

Try to search in your php.ini for "open_basedir" and correct the path information.


RE: Image upload - open_basedir restriction in effect - Help! - shella - 06-14-2015

I just got the same problema and I solved deactivating it. With Plesk is possible to deactivate it for a single domain but I'm diggin in to understand if there is a better way to keep security working well!