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 ?
I have tryed to CHMOD Album to both 777 and 755 but nothing helps.
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 ???
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 (http://www.simplemachines.org/community/index.php?topic=2987.0)
Thanks for your answer. Everything works just fine now :)