Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Upload Warning ?  (Read 4507 times)

0 Members and 1 Guest are viewing this topic.

SpookiePower

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Upload Warning ?
« on: May 08, 2005, 11:05:49 am »

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 ?
« Last Edit: May 10, 2005, 10:06:28 am by GauGau »
Logged

SpookiePower

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Upload Warning ?
« Reply #1 on: May 08, 2005, 11:22:49 am »

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

SpookiePower

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Upload Warning ?
« Reply #2 on: May 08, 2005, 11:31:22 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload Warning ?
« Reply #3 on: May 09, 2005, 07:35:24 am »

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
Logged

SpookiePower

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Upload Warning ?
« Reply #4 on: May 09, 2005, 01:18:56 pm »

Thanks for your answer. Everything works just fine now :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.