I currently have the Java SDK installed on my red hat box with plesk. I want to be able to access java commands from the web using the system() command in php to run the commands.
I think its a permissions based problem either in javas setings or in apache but when i run a java command like "java -version" from command line it gives a responce but from php on a web server is gives no response when i run system("java -version"). also note htat that same php file ran from command line outputs correctly. i think the wwwrun user for apache does not have access to the java commands.
Any help would be appciciated or other ways to access the java commands in php would be great.
thanks,
Dan