icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Gallery2 and Safe Mode Restrictions.

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old October 9th, 2008, 1:50 PM   #1 (permalink)
I <3 Amie Street. :)
Fresh Surpasser
 
Joined in Feb 2007
Lives in Florida
Hosted on sh114
8 posts
Gave thanks: 2
Thanked 0 times
Gallery2 and Safe Mode Restrictions.

It appears that with the safe mode restrictions turned on, it's nearly impossible to install Gallery2 outside of using Fantastico.

While I can install G2 this way, and get one running, I would prefer to use the multisite install method, so I can use one install of Gallery, host multiple Galleries, and when I need to update, only have to do it once.

However!
Whenever you try to do a install without Fantastico, or try to invoke the installer for multsite installation, you run into this error:

Code:
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /home/__/public_html/__/galcore/modules/core/classes/GalleryTranslator.class on line 302
 
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /home/__/public_html/__/galcore/modules/core/classes/GalleryTranslator.class on line 303
Is there a way around this issue? I'd really like to get my multisite stuff running soon, without having to mangle five or ten different installs.
JHobley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 10th, 2008, 11:33 AM   #2 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,260 posts
Gave thanks: 3
Thanked 27 times
turn safe_mode = Off in php.ini
__________________
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 11th, 2008, 11:53 AM   #3 (permalink)
I <3 Amie Street. :)
Fresh Surpasser
 
Joined in Feb 2007
Lives in Florida
Hosted on sh114
8 posts
Gave thanks: 2
Thanked 0 times
Quote:
Originally Posted by FredFredrickson View Post
turn safe_mode = Off in php.ini
Thank you for the suggestion; However, switching safe mode off in php.ini does nothing for me -- I still receive the same errors, and I figure that this error is also why Gal2 is rejecting the code in login.txt, saying that it doesn't match at all.
JHobley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2008, 1:01 AM   #4 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,260 posts
Gave thanks: 3
Thanked 27 times
Take a look at "safe_mode_protected_env_vars" and "safe_mode_allowed_env_vars"

PHP: Safe Mode - Manual
__________________
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On