|
Posted by Good Man on 10/13/77 11:36
Andy Hassall <andy@andyh.co.uk> wrote in
news:9titr1diijg4n3j5nu9ljrg6ah3fua057j@4ax.com:
> On Fri, 06 Jan 2006 13:36:04 -0600, Good Man <heyho@letsgo.com> wrote:
>
>>Why would the command be working from the
>>terminal window but not from the PHP script?
> If you run "env" (usually in /usr/bin or /bin) using exec from PHP
> then you
> can get it to dump the environment that will be seen by processes run
> by exec - I would bet that there are Java-related environment
> differences.
Hi Andy
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.
Navigation:
[Reply to this message]
|