I'm trying to deploy app on AWS under nginx user. Line
$path = trim(shell_exec('which '.$command));
return empty result. After some debug I catch the problem. The PATH variable is not exported. So the line:
$path = trim(shell_exec('export PATH=$PATH; which '.$command));
is working for. How about fix it?
I'm trying to deploy app on AWS under
nginxuser. Linereturn empty result. After some debug I catch the problem. The
PATHvariable is not exported. So the line:is working for. How about fix it?