coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: kurucz on October 31, 2003, 11:00:36 AM

Title: Can't upload pictures
Post by: kurucz 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?
Title: Can't upload pictures
Post by: gtroll 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);"
Title: Can't upload pictures
Post by: aawebtools 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?
Title: Can't upload pictures
Post by: DJMaze on November 03, 2003, 03:55:27 AM
change also db_input.php and include/*.* to the "site owner"
Title: Can't upload pictures
Post by: klaus1 on November 12, 2003, 12:49:04 AM
what do you mean change them to "site owner"?
Title: Can't upload pictures
Post by: DJMaze 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)