Skip to content

which command do not work #54

Description

@karmazzin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions