coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: MaxS on January 26, 2009, 11:58:34 AM

Title: How 1.4.19 manages to work in safe mode
Post by: MaxS on January 26, 2009, 11:58:34 AM
This post is not about a Coppermine problem – so I will understand if Moderator deletes it or curses me or both. But the General Discussion forum is locked, so...

My Coppermine 1.4.19 "runs without any problem in safe mode and with the 'open basedir restriction' active, provided safe mode is properly configured". Since, except when silly_safe_mode is set, db_import appears to want to create a unique subdirectory for each user (named 10000 + user_id) when that user first HTTP-uploads pictures, I would appreciate if anyone could elaborate how this manages to work when in safe mode and exactly which system misconfiguration silly_safe_mode is intended to circumvent. Why? I have in a totally different (non-Coppermine) environment the problem of issuing mkdirs from PHP scripts (which have my FTP UID) when the resulting subdirectories have Apache's UID and any resulting file placements in that subdirectory fail because of the safe mode check.         

Title: Re: How 1.4.19 manages to work in safe mode
Post by: Hein Traag on January 26, 2009, 12:37:03 PM
Searching for "silly_safe_mode" in the documentation leads you to item 2.3
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe)
Title: Re: How 1.4.19 manages to work in safe mode
Post by: MaxS on January 26, 2009, 12:56:35 PM
Documentation item 2.3 is the first thing I read.
But it does not unfortunately address my question: which is not how to configure Coppermine to make it work under safe mode's restrictions but how Coppermine then does so. The same is true for silly_safe_mode: I see in the code where it set and where it is used, but...

I read the code, but - perhaps because I am a second-rate (or even third-rate) PHP coder or perhaps because I have a totally inadequate understanding of how Coppermine works and the precise definition of its variables - do not comprehend what is actually happening in this area. Pls forgive my ignorance.
Title: Re: How 1.4.19 manages to work in safe mode
Post by: Joachim Müller on January 26, 2009, 10:07:55 PM
All that silly safe mode does is to avoid creating new folders, because that would lead to errors on poorly configured servers. If silly safe mode is on, all http uploads will go into the userpics folder and not into subfolders. That's it. Not sure how that is going to help you.