On Mon, Jun 14, 2010 at 7:59 PM, Graham Dumpleton
<[email protected]> wrote:
> On 15 June 2010 06:02, Ben Timby <[email protected]> wrote:
>> I did find out that on CentOS (production server), I was using:
>>
>> LANG=en_US.UTF-8
>>
>> in /etc/sysconfig/httpd. This worked with mod_python, but for mod_wsgi, I 
>> need:
>>
>> HTTPD_LANG=en_US.UTF-8
>>
>> Now to figure out how to fix this on Ubuntu (as that is my development OS).
>
> The HTTPD_LANG variable would seem to be a CentOS specific change as
> Apache doesn't in original ASF source code consult such a variable. In
> other words, must be part of the customised CentOS startup scripts
> with it then setting LANG based on that.

Yes, on all RedHat based distros (RHEL, Fedora, CentOS) the
HTTPD_LANG variable is converted to just LANG right when the
httpd daemon is started...

>From /etc/init.d/httpd....

   # Start httpd in the C locale by default.
   HTTPD_LANG=${HTTPD_LANG-"C"}
       ...
   LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS

This is done so that the language for Apache can be set independently
from the rest of the system.  And also so it defaults to "C" even if
you set the lang to something else for everything else.

-- 
Deron Meranda
http://deron.meranda.us/

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to