Google Answers Logo
View Question
 
Q: access to java commands in php ( No Answer,   3 Comments )
Question  
Subject: access to java commands in php
Category: Computers > Programming
Asked by: arestia-ga
List Price: $50.00
Posted: 07 Sep 2005 08:03 PDT
Expires: 10 Sep 2005 14:47 PDT
Question ID: 565202
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 that the same
php file ran from command line outputs correctly. i think the wwwrun
user for apache does not have access to the java commands.

this is a very time sensistive problem so tips could be added on quick response

Clarification of Question by arestia-ga on 08 Sep 2005 07:50 PDT
i have bumped the price up from $20.00 to $50.00, i need to get this
figured out ASAP
Answer  
There is no answer at this time.

Comments  
Subject: Re: access to java commands in php
From: feldersoft-ga on 08 Sep 2005 20:46 PDT
 
Have you tried executing any other system commands from php?
Subject: Re: access to java commands in php
From: arestia-ga on 08 Sep 2005 22:43 PDT
 
yes pretty much all commands work from php like "ls" and even "perl"
Subject: Re: access to java commands in php
From: feldersoft-ga on 08 Sep 2005 23:56 PDT
 
If you want to test wwwrun's ability to run java, you may want to su
to that user and try to run it.

Have you looked at using the php java extension?

http://us2.php.net/java

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy