I have some variables written in /etc/environment
NLS_DATE_FORMAT=DD/MM/YYYY
NLS_DATE_LANGUAGE=SPANISH
NLS_LANG=SPANISH_SPAIN.WE8ISO8859P1
However, when I open the shell in Ubuntu and I start lampp (sudo /opt/lampp/lampp start), the environment variables don't appear in phpinfo. I'm using Ubuntu 10.4
How can I make 开发者_Go百科Apache2 aware of the variables?
Please help
Thank you
I tried putting those variables in /etc/bash.bashrc, also in my apache config file with SetEnv. However, no luck at all. Finally I found the solution elsewhere which, in my case, it's working.
I added the variables here: /opt/lampp/bin/envvars
export NLS_DATE_FORMAT=DD/MM/YYYY
export NLS_DATE_LANGUAGE=SPANISH
export NLS_LANG=SPANISH_SPAIN.WE8ISO8859P1
Hope this will help someone!
精彩评论