coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: MrPete on January 22, 2005, 08:20:05 PM

Title: Would anyone be helped by our cgi workaround for safe-mode limits?
Post by: MrPete on January 22, 2005, 08:20:05 PM
Our main server is php safe-mode (for noobs: that means php can't create new directories, which causes hassles for user albums, etc).

We were able to 100% work around this by creating a tiny perl cgi script (that goes in cgi-bin) to do the dirty work. We now have coppermine able to create new user directories even though it is in safe mode.

My question: is this something only useful for us, or would it possibly help other users?

Those of you who have a safe_mode host: are you allowed to create cgi scripts? If so, our solution might be worth integrating into coppermine.

Your thoughts and ideas appreciated!
Title: Re: Would anyone be helped by our cgi workaround for safe-mode limits?
Post by: kegobeer on January 22, 2005, 10:17:00 PM
Why don't you save your perl file as a text file and attach it to your post?
Title: Re: Would anyone be helped by our cgi workaround for safe-mode limits?
Post by: MrPete on January 23, 2005, 01:11:45 AM
Quote from: kegobeer on January 22, 2005, 10:17:00 PM
Why don't you save your perl file as a text file and attach it to your post?

I can do that, but there's more to it than a cgi script... also a few core *.php file edits ... I can submit as a hack but prefer to improve the core when possible ;)
Title: Re: Would anyone be helped by our cgi workaround for safe-mode limits?
Post by: Joachim Müller on January 23, 2005, 09:34:33 AM
Please post the hack, a dev will look into it and see if it makes sense to add it to the core of a future release.

Joachim