It's CentOS 5. I created
/etc/profile.d/java.sh file where I set and export
JAVA_HOME. Everything works fine in terminal.
When I'm trying to get this environment variable from PHP under Apache I get the following, after using
TERM=xterm-color _=/bin/env PWD=/home/... LANG=C SHLVL=3
Not even a sign of
JAVA_HOME. Where should I declare it to make visible for apache?