![]() |
php and exec
a quick question, maybe already answered but I couldn't find anything yet, so please excuse me :)
I'm using cPanel + LiteSpeed, and for example, I have the following code on a php script: PHP Code:
Another funny thing is, if instead I use `which --help` it works in both and actually "convert" does work without problems, so I'm kinda confused here :) |
You can set "PATH=...." in lsphp5 "Environment" configuration.
|
Quote:
PHP Code:
Code:
:: [echo $PATH] |
my local test not empty, show " /usr/bin/convert" correctly:
Quote:
|
Quote:
Thanks for the updates guys :) |
tested with root, also tested with nobody
access it through browser, it runs under lsphp5 user -- nobody. you can add out("id"); to confirm it. |
I'm running out of ideas, not sure what it could be but the funny thing is that this issue happens on all the servers we have.
Why it can execute "which" and only be able to get the help? :( |
are you able to reproduce the issue in Apache?
|
@webizen, yes Sir, this is the output:
Quote:
|
not sure why yet, but following tests may inspire others:
PHP Code:
Quote:
|
| All times are GMT -7. The time now is 06:31 AM. |