I've compiled PHP from source on Debian Stretch in a docker container.
I have added this entry to my Supervisor config:
command=/bin/sh -c 'QUEUE=orders/create APP_INCLUDE=/var/www/html/jobs/OrdersCreate.php php /var/www/html/includes/vendor/resque/php-resque/resque.php >> /var/www/log/OrdersCreate.log 2>&1'
autostart=true
autorestart=true
priority=11
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
It logs the error:
/bin/sh: 1: php: Permission denied.
If I add the full path to PHP /usr/bin/php/bin/php
, it works fine.
Why is this and how can I make it work without specifying the full path?