ok, this is my problem:
im working on some web-shop with php/mysql. so far all works fine. now i want to generate dynamic pdf-files with some kind of data-sheets for each products. for that use use apache FOP. even that works fine. i've got the stylesheets and stuff. i use some pretty long exec-command to build it and it takes age because i need to write the xml-data to file on the file system first, but nm, it works, at least on the shell.
my only problem is that i somehow need to set $JAVA_HOME for the user www-data. how do i do that? i put
export JAVA_HOME="/usr/local/lib/jdk"
export JDK_HOME="${JAVA_HOME}"
export PATH="${JAVA_HOME}/bin:${PATH}"
in /etc/profile, but that does not seem to make any difference