You are here: Re: Trying to execute Java command on server via PHP « All PHP « IT news, forums, messages
Re: Trying to execute Java command on server via PHP

Posted by Good Man on 01/08/06 21:25

Good Man <heyho@letsgo.com> wrote in
news:Xns97439C7BF174sonicyouth@216.196.97.131:

> Thanks for the tip. Indeed, comparing the "env" outputs, I see my
> telnet user has
> "/usr/java/j2sdk1.4.2_06/bin:/usr/java/j2sdk1.4.2_06/jre/bin" listed
> in the PATH: variable, while those lines are absent from the apache
> user's PATH. I am guessing that the problem is exactly this - the
> user 'apache' has no access to java.
>
> I have spoken with the tech support people running my box and asked
> them to add the Java path to the apache user, and I will post the
> result to the NG for future reference and interest.

To follow up, this was exactly the problem. Adding the path to the apache
user enabled me to call a java program via PHP.

Hope this helps someone in the future too!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация