• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image upload - open_basedir restriction in effect - Help!

#1
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!
Reply

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

Reply

#3
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!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.