Trying to use Crontab to execute commands at regular intervals. But crontab keeps giving the error:
/bin/sh: /var/www/html/Scripts/lib/Tasks.php: /usr/bin/php^M: bad interpreter: No such file or directory
Tasks.php:
#!/usr/bin/php
<?php
//scripts
?>
I feel like my Shebang is messed up. The main php file appears to be present in /usr/bin/php but I keep getting the error. I have been trying other shebangs from other posts but most of them are not using the combination of Centos6 php5 and apache. I just need to execute this php script every few min.