Attempting to run a PHP script via shell script and keep getting a 'syntax error' from Monit when reading the shell script.
launchQueue.sh
#!/bin/sh
php /var/app/current/hello.php
The shell script will run on it's own and I've opened up all permissions. Monit is calling it from it's own directory /etc/monit.d/* - which is supposed to run all files within it when monit starts up.
Exact error reads: "/etc/monit.d/launchQueue.sh:2: Error: syntax error 'php'"
- I have moved it out of monit.d as this post suggests, but I get the same error.
Running Monit Versions 5.2.5