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. BTW, are you 100 percent sure your application is running in daemon mode and not by accident in embedded mode. If running in embedded mode by accident and also loading mod_php, then PHP setup can override the language settings from memory. So, modify your script and dump out WSGI environ diction passed to application and see what 'mod_wsgi.process_group' is set to. If it is an empty string, you are actually running in embedded mode and not daemon mode as you think. Graham -- 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.
