Are you sure your application is actually running in daemon mode and not embedded mode?
http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Embedded_Or_Daemon_Mode Many people set WSGIDaemonProcess but don't actually use WSGIProcessGroup and so they are still running in embedded mode, meaning you wouldn't pick up the lang/local settings from daemon mode. Are you using IP addresses in the VirtualHost directive line? There is a suspected issue with logging where logging doesn't come out in some cases where an IP address was used in VirtualHost directive. Also make sure you are looking in main Apache error log and not just the virtual host error log. Finally, when you say you are about to upgrade, in testing you are actually using 4.2.5 to validate behaviour? Graham On 05/12/2014, at 11:06 PM, Nikolai Prokoschenko <[email protected]> wrote: > Hello, > > I'm running our Django application on mod_wsgi on a SLES11 SP3 installation. > SLES' apache2 doesn't have an envvars file and also resets all environment > variables before start so I used to patch its init.d script to include LANG > and LC_ALL in the main process. > > So far I'm using mod_wsgi 3.3 but I'm about to upgrade to 4.2.5, so I figured > I could throw that patch away and use lang= and locale= parameters to > WSGIDaemonProcess. I've added "lang=de_DE.UTF-8 locale=de_DE.UTF-8" to the > WSGIDaemonProcess line, however, it doesn't seem to work at all. > > What I know: > > 1. Options get accepted by mod_wsgi (no error on startup) > 2. Debug logging works (I'm getting mod_wsgi messages with debug level in the > apache error log if LogLevel is set to "debug") > 3. I do NOT get any logs about activated locale and lang settings (which > should be there in debug log level according to > https://github.com/GrahamDumpleton/mod_wsgi/blob/4.2.5/src/server/mod_wsgi.c#L8860) > 4. Locale settings do NOT work (application crashes where files with UTF-8 > encoded filenames are accessed) > > I tried reading the mod_wsgi code, which doesn't seem to be broken, but I > still don't see how 1, 2 and 3 are possible simultaneously. Is there > something I might be missing? > > I'm thankful for any ideas. > > Nikolai. > > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
