djerik Posted December 15, 2005 Posted December 15, 2005 Hi All After my host has changed some settings at the server, uploading images no longer works. Therefore I installed the shop again, still no luck. The error message: Warning: move_uploaded_file(): open_basedir restriction in effect. File(/var/www/fullpull.dk/public_html/shop/images/1458_s.jpg) is not within the allowed path(s): (/var/www/fullpull.dk/public_html:/var/www/phpmyadmin/:/var/www/fullpull.dk/tmp) in /mnt/raid/www/www/fullpull.dk/public_html/shop/admin/includes/classes/upload.php on line 91 The phpinfo can be viewed here: phpinfo Any help will be great!
♥Vger Posted December 15, 2005 Posted December 15, 2005 Make sure that you create a folder called 'tmp' in the root of your website, and give it full permissions (777). See if that helps. Vger
djerik Posted December 16, 2005 Author Posted December 16, 2005 Make sure that you create a folder called 'tmp' in the root of your website, and give it full permissions (777). See if that helps. Vger When I log in with my FTP client I can see a folder called tmp i the root of my site. This folder is created by my host. I cannont access the folder. I cannont change the permissions, currently it has permission 700, is that sufficient?
djerik Posted December 16, 2005 Author Posted December 16, 2005 My host has now changed it to 777, still no luck. However, my ftp client cannot access the folder, it times out listing the directory? What now?
♥Vger Posted December 16, 2005 Posted December 16, 2005 I can't guarantee that this will work - or even if there is a connection between the session save path and file uploads - but you can give it a try. In your osC admin panel, under Configuration --> Sessions click on the top link which says /tmp for the file path. You then have two options: 1. Someone has suggested it works if you just change it to tmp with no slash 2. If that doesn't work then change the pathway to /var/www/fullpull.dk/tmp 3. If that doesn't work then change hosts - because with your current hosts running php in Safe Mode and with Open Base Dir Restrictions in effect this is probably only the first of problems you will encounter. Vger
djerik Posted December 16, 2005 Author Posted December 16, 2005 None of the above mentioned helped. Thank you very much for your help, I will change to another host instead.
♥Vger Posted December 16, 2005 Posted December 16, 2005 That's a good move - because with PHP running in Safe Mode many hosts simply disallow the 'file upload' function in PHP, and then the errors you see on screen simply cannot be rectified at all and only mislead people into thinking they can resolve it. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.