Hi
I've got some problems when I'm trying to install G2 on my webspace. I can't get to step 3 because it throws me some warnings.
Can you help me.
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/modules/core/classes/GalleryTranslator.class on line 306
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/modules/core/classes/GalleryTranslator.class on line 307
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/modules/core/classes/GalleryTranslator.class:306) in /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/lib/support/GallerySetupUtilities.class on line 76
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/modules/core/classes/GalleryTranslator.class:306) in /customers/maartenva.be/maartenva.be/httpd.www/drupal/modules/gallery/gallery2/lib/support/GallerySetupUtilities.class on line 76
Thanks
Gallery version (not just "2"): 2.3
Browser (e.g. Firefox 2.0): firefox 3.5 and IE 8
Posts: 22892
FAQ: Does G2 work with Safe Mode PHP?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Ok that's the problem with the first 2 warnings. Will it solve the last 2 also?
I'll have to contact my webprovider for this, I can't change anything myself.
Thanks
Posts: 16503
Possibly, you need to get safe_mode turned off first.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 5
Hello, i have the same problem to on one.com, have you figure out how to solve this problem?
Posts: 4
didn't have the time yet. I hope to get it done soon.
Posts: 5
Ok give me a note when you have find out a solution with one.com
I think it will not help if i take a contact with them to about this.
Posts: 22892
Just ask them to disable safe_mode.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Hello every one. I did today ask one.com to turn off safemode. And this did i get as answere.
Am not shure if this is true that safemode help the security level on php server. Or is it? And why are this gallery that are so good codet that way?
Is there any way to tweak the code so we don't have to turn of the safemode on phpserver?
Posts: 16503
I'm going to be short and to the point here. They are clueless and you need to find a new host.
There is a huge discussion about safe_mode and how it's just a really bad idea, poorly implemented. If they offer any other languages on their server like Perl, you can instantly bypass EVERYTHING safe_mode tries to disable.
PHP 6.x, safe_mode is removed
PHP 5.3 safe_mode is depreciated
There are correct ways to secure a server and incorrect ways, and safe_mode is the incorrect way.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22892
From: http://gallery.menalto.com/node/3017
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16503
Yep, properly setting up permissions is the only real way to secure a system. On a system that has PHP with safe_mode and ANY other script language I can bypass ALL of PHP "secure" settings. Move to a host who has a clue. They're going to be up a creek when PHP 6.0 comes out and it doesn't have safe_mode at all. They won't have a clue what to do.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 5
Ok. I see the problem with security policy that host have. But i allsow did find one guy have patchet G2.3 so it work with one.com host.
Posts: 16503
Don't come here looking for help of any sort with that hacked version of Gallery
I'll ask for you phpinfo, see that safe_mode is on and stop with asking to either have safe_mode turned off or finding a new host
I'll occasionally help out with some unsupported configurations but safe_mode is strictly not one of them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22892
All question have been asked and answered about safe_mode in this thread:
http://gallery.menalto.com/node/3017
Please read it all.
Safe_mode: you need it turned off, case closed.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
I've just spoken with one of support and they tell me that menalto isn't supported by them and that they don't turn of the safe mode.
No luck
So I guess that I'm looking for an other galllery.
Posts: 4338
You'd be about a zillion times better off looking for another host, instead.
Posts: 16503
I agree 100%. Someone who's blind and won't re-evaluate the use of safe_mode doesn't know what they are doing.
Good luck with the future problems you will undoubtedly have there.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 5
Thank you for the help.
Yes and yes there are alot web host who use safe_mode. But anyway the patched version of gallery2 i use, work perfectly and i will NOT ask your guys for help if it don't work anymore ;-)
Everything will maybe be better when new version of php comes. ;)