forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Apocalymon on February 14, 2004, 12:28:40 am

Title: Impossible to move uploaded file
Post by: Apocalymon on February 14, 2004, 12:28:40 am
I have a problem with uploading Files....

here's the error message:

Impossible to move bwg.jpg to albums/userpics/ !

File: /home/www/htdocs/flamon.de/gallery/db_input.php - Line: 259



Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/phpQpP8Ha) is not within the allowed path(s): (/home/www/htdocs/flamon.de/.) in /home/www/htdocs/flamon.de/gallery/db_input.php on line 258

Warning: move_uploaded_file(/tmp/phpQpP8Ha) [function.move-uploaded-file]: failed to create stream: Operation not permitted in /home/www/htdocs/flamon.de/gallery/db_input.php on line 258

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpQpP8Ha' to 'albums/userpics/bwg.jpg' in /home/www/htdocs/flamon.de/gallery/db_input.php on line 258
Title: Impossible to move uploaded file
Post by: Joachim Müller on February 14, 2004, 08:56:30 am
Make sure you have CHMODed your albums dir as stated in the readme that comes with coppermine. If your server is running in safe_mode, try enabling SILLY_SAFE_MODE.
Further reading: http://coppermine.sourceforge.net/demo/docs/index.htm#safe

GauGau
Title: Impossible to move uploaded file
Post by: hyperion on February 14, 2004, 09:28:49 am
Also, have you tried creating a /tmp folder in your website root?
Title: Impossible to move uploaded file
Post by: Apocalymon on February 14, 2004, 01:42:45 pm
I have chmod the folders... but same error...
Silly_safe mode enable... same error...
tmp folder in webroot created... same error


:/

It's weird, because on this server, other user run a gallery with php upload and there it works
Title: Impossible to move uploaded file
Post by: Joachim Müller on February 14, 2004, 03:01:34 pm
take a look at http://forum.coppermine-gallery.net/index.php?topic=1209 - maybe this helps...

GauGau
Title: Impossible to move uploaded file
Post by: Apocalymon on February 15, 2004, 02:44:02 am
hmm.. so I can't do anything about this on the server I am now...

hmm is there a possibility to change the tmp path ( in the CPG script or on providers site? )
Title: Impossible to move uploaded file
Post by: Joachim Müller on February 15, 2004, 08:47:16 am
the webhost/server admin surely can, but as your webhost has limited your abilities/permissions on your server it's doubtfull you're allowed to do that. Maybe you can modify it with a .htaccess file - please do some search on the apache manual (http://httpd.apache.org/docs/).

GauGau