title: Crontab unable to execute PHP script. bad interpreter: No such file or directory
body: <p>Trying to use Crontab to execute commands at regular intervals. But crontab keeps giving the error:</p>
  
  <blockquote>
    <p>/bin/sh: /var/www/html/Scripts/lib/Tasks.php: /usr/bin/php^M: bad
    interpreter: No such file or directory</p>
  </blockquote>
  
  <p>Tasks.php:</p>
  
  <pre><code>#!/usr/bin/php
  &lt;?php
  //scripts
  ?&gt;
  </code></pre>
  
  <p>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.</p>