Hi I would like to call java using PHP exec() function but it fails (no output of e.g. exec('/usr/bin/java -version')
.
I am running apache with PHP as Fast-CGI (with fcgid) on debian wheezy.
The java binary is available under /usr/bin/java and is callable from command line, e.g. '/usr/bin/java -version' returns expected information.
Calling this in context of the apache/suexec user works as well from command line (sudo -u www-data /usr/bin/java -version).
But called from PHP usig exec()
or checked with is_executable('/usr/bin/java')
does not work.
What am I missing?