开发者

Ubuntu Environment Variables for Apache

开发者 https://www.devze.com 2023-03-05 15:12 出处:网络
I have some variables written in /etc/environment NLS_DATE_FORMAT=DD/MM/YYYY NLS_DATE_LANGUAGE=SPANISH NLS_LANG=SPANISH_SPAIN.WE8ISO8859P1

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号