Hi, I would like to 'pass' shell environment variable to apache2. Looking at the /etc/init.d/apache2 I've noticed, that env vars are cleared with 'clear_env_except'. I've tried to add the variable to the /etc/conf.d/apache2 KEEPENV directive but it didn't help.
I also tried to add line 'NLS_LANG' to the /etc/conf.d/env_whitelist but with no avail. Another try was to add the variable to /etc/env.d/50oracle-instantclient-basic and run env-update and the restart the apache2 server, with no luck... I also put the 'NLS_LANG' export in the /etc/profile and it didn't work. Eg.: In shell I export: export NLS_LANG=American_America.UTF8 /etc/init.d/apache2 start Using this simple PHP script I can see what is set: test.php: <?php echo "<pre>"; system("set"); echo "</pre>"; ?> I need NLS_LANG to be listed here but it is missing. If I start the apache2 from the command line (without using the /etc/init.d/apache2) the NLS_LANG is printed by the test.php script. What am I doing wrong? Best regards, Hinko -- ČETRTA POT, d.o.o., Kranj Planina 3 4000 Kranj Slovenia, Europe Tel. +386 (0) 4 280 66 03 E-mail: [EMAIL PROTECTED] Http: www.cetrtapot.si -- gentoo-user@lists.gentoo.org mailing list