FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Possible mod_perl incompatibility
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Possible mod_perl incompatibility [message #21229] Mon, 22 November 2004 19:31 Go to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
In researching a problem I'm having on one server with Apache 2.x processes that seg fault intermittently, I came across the following:

http://www.phpbuilder.com/lists/php-install/2003092/0018.php

Per the instructions, I replaced FUD's use of putenv() with apache_setenv(). While it didn't help my seg fault problem, I thought you might want to consider doing the same in the official distribution. The only place I found putenv() was in users.inc.
Re: Possible mod_perl incompatibility [message #21230 is a reply to message #21229] Mon, 22 November 2004 20:53 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This is a rather nasty situations where there is no proper fix. Using apache_setenv() does not work because when changing the timezone env variable you also need to call (lib C function) tzset() to make that timezone usable. This function ONLY reads the system environment setting and ignores the apache one. This means that calling apache_setenv() does absolutely nothing and might as well not be called at all.

The "fix" I've added is an admin option that allows disabling of the putenv() call for the people who encounter the same problem as you.

The official patch can be found here:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3160


FUDforum Core Developer
Re: Possible mod_perl incompatibility [message #22494 is a reply to message #21230] Fri, 04 February 2005 23:19 Go to previous messageGo to next message
gbjbaanb is currently offline  gbjbaanb   United Kingdom
Messages: 41
Registered: February 2003
Location: UK
Karma: 0
Member
I have a different problem with the use of putenv - it screws up my apache logs, so that my log analyser (awstats) doesn't correctly read all log lines.

Personally, I'd like to see this removed from future versions of fudforum, not only for this, but because its another thing to get in the way of sites with safe_mode on.
Re: Possible mod_perl incompatibility [message #22495 is a reply to message #22494] Fri, 04 February 2005 23:31 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can disable it by setting "Do not set timezone" option to on in global settings.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Forum Crash?
Next Topic: Quoting problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 18:31:00 GMT 2024

Total time taken to generate the page: 0.03058 seconds