forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: kaliuyang on April 26, 2004, 07:49:01 am

Title: PHP safe_mode
Post by: kaliuyang on April 26, 2004, 07:49:01 am
just wondering whether "Coppermine" require PHP safe_mode to be off???

my webhoster won't disable it due to so-called "security issues" >:(

thanx a lot.
Title: Re: PHP safe_mode
Post by: Joachim Müller on April 26, 2004, 08:23:07 am
From the docs ( http://coppermine.sourceforge.net/manual.php#safe ):
Quote
A significant number of webhost 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: Re: PHP safe_mode
Post by: suzy on September 23, 2004, 07:18:42 pm
I did all this and I am still getting these errors from my members :
Impossible to move Image1.jpeg to modules/coppermine/albums/userpics/13626/ !



Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access /home/virtual/site1/fst/var/www/html/modules/coppermine/albums/userpics/13626 owned by uid 48 in /home/virtual/site1/fst/var/www/html/modules/coppermine/db_input.php

how do I fix this?
Title: Re: PHP safe_mode
Post by: Joachim Müller on September 24, 2004, 05:40:41 am
the usage of the term "modules" hints that you're using he nuked version of coppermine. This board here is dedicated to the standalone version only.. Refer to http://forum.coppermine-gallery.net/index.php?topic=2277.0

Joachim