Equivalent of PHP setlocale in an APACHE config file

Posted by Nicolas on Server Fault See other posts from Server Fault or by Nicolas
Published on 2013-05-26T22:56:50Z Indexed on 2014/08/19 22:22 UTC
Read the original article Hit count: 259

I need to display a date in french locale.
A solution is to use setlocale(LC_TIME, 'fr_FR');
But I'm looking to set the locale directly in the configuration of my apache server.
In the /etc/httpd/conf/httpd.conf file, I tried

<VirtualHost *:80>
    ...
    SetEnv LC_TIME 'fr_FR'
</VirtualHost>

without any effect.
In which php or apache configuration file should I define the LC_TIME variable?

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about php