PHP safe_mode PHP safe_mode
 

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]

Main Menu

PHP safe_mode

Started by kaliuyang, April 26, 2004, 07:49:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaliuyang

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.

Joachim Müller

#1
From the docs ( http://coppermine.sourceforge.net/manual.php#safe ):
QuoteA 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);"

suzy

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?

Joachim Müller

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