Impossible to move uploaded file Impossible to move uploaded file
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Impossible to move uploaded file

Started by Apocalymon, February 14, 2004, 12:28:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Apocalymon

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

Joachim Müller

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

hyperion

Also, have you tried creating a /tmp folder in your website root?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Apocalymon

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

Joachim Müller


Apocalymon

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? )

Joachim Müller

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.

GauGau