Upload Warning ? Upload Warning ?
 

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

Upload Warning ?

Started by SpookiePower, May 08, 2005, 11:05:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SpookiePower

I have never had any problems uploading pictures to my gallery, but now
get this warning -

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_9ef35d54.jpg): failed to open stream: Permission denied in /usr/home/dan13171/public_html/fotoalbum/upload.php on line 1197

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpPnLZo1' to './albums/edit/mHTTP_temp_9ef35d54.jpg' in /usr/home/dan13171/public_html/fotoalbum/upload.php on line 1197

I can see it has something to do with permission, but cant find out how to solve it.
Can some one help me ?

SpookiePower

I have tryed to CHMOD Album to both 777 and 755 but nothing helps.

SpookiePower

Just found out that album/edit also should be 777 and it works now.....almost.

Now I get this new message -

Destination directory albums/userpics/10001/ is not writable by the script !

I also set this album "10001" to 777 and now it works just fine, but is it safe to set "10001" to 777 ???

Joachim Müller

yes, 777 is pretty safe - thousands of coppermine installs are set up this way. The only potential danger would be if your webhost hasn't configured your webserver accordingly, another person who shares virtual hosting with you on the same webserver might do things to your albums folder. As he couldn't use this to get access to any security-related information, and his steps could easily be tracked, it's very unlikely that this will happen. Interessting read: Why chmod 777 is NOT a security risk

SpookiePower

Thanks for your answer. Everything works just fine now :)