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: Can't upload pictures  (Read 7154 times)

0 Members and 1 Guest are viewing this topic.

kurucz

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Can't upload pictures
« on: October 31, 2003, 11:00:36 am »

Hi!
I use Coppermine 1.1 on my PHP-Nuke powered site.
I can't upload pictures, the message is the next:


"Impossible to move c01.jpg to modules/coppermine/albums/userpics/10004/ !

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10000 is not allowed to access /home/www/htdocs/szifvn88/html/modules/coppermine/albums/userpics/10004 owned by uid 80 in /home/www/htdocs/szifvn88/html/modules/coppermine/db_input.php on line 263"
The directories are in "777" mode.
What can I do?
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Can't upload pictures
« Reply #1 on: October 31, 2003, 09:30:56 pm »

Safe mode issues

A significant number of webhosts on the Internet run PHP in safe mode. Coppermine runs without any problem in safe mode and with the "open basedir restriction" active, provided safe mode is properly configured. Unfortunately on many hosts, safe mode is not configured properly.

If your webhost is running PHP in safe mode but is misconfigured, you may need to do the following :

    * With a FTP program, change the mode of Coppermine's "include" directory on your server to 0777.
    * Do the same for the "albums" and "userpics" directories.
    * Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);"

aawebtools

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Can't upload pictures
« Reply #2 on: November 02, 2003, 09:49:47 pm »

I am having this same exact problem after moving from one server to another. After trying to find the problem, I stumbled across the fact that the folder ownership and group are being assigned to "apache" instead of the user for the site.  A temporary fix is to SSH in and chown and chgrp back to the site user, and everything works correctly until a new album is created.  Then I have to do it again.  Any one have any idea how to get this back to creating folders that are owned and group by the site owner and not apache?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Can't upload pictures
« Reply #3 on: November 03, 2003, 03:55:27 am »

change also db_input.php and include/*.* to the "site owner"
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Can't upload pictures
« Reply #4 on: November 12, 2003, 12:49:04 am »

what do you mean change them to "site owner"?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Can't upload pictures
« Reply #5 on: November 12, 2003, 12:56:56 am »

probably your FTP app knows the chown() command which means CHangeOWNer read the FTP docs and then change the files to the proper "uid" (user id)
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 15 queries.