title: Cron job failing - wrong PHP version?
body: <p><strong>Works on local WAMP</strong></p>
  
  <p><code>php artisan schedule:run</code> works as expected on my local WAMP.</p>
  
  <p><strong>Error: When running on web hosted server</strong></p>
  
  <p>When I run <code>php artisan schedule:run</code> on my webhosting server it crashes. <strong>Error log</strong>:</p>
  
  <blockquote>
    <p><b>Parse error</b>:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in <b>/var/sites/p/mysite.com/delayed/artisan</b> on line <b>30</b><br /></p>
  </blockquote>
  
  <p><strong>What I think it is: PHP version issue</strong></p>
  
  <p>Believe it is a php version error issue (cron job on hosted server is 5.3 and L5 requires 5.5.9...)
  <a href="http://laravel.io/forum/06-10-2015-laravel-5-error-on-installation" rel="nofollow">http://laravel.io/forum/06-10-2015-laravel-5-error-on-installation</a></p>
  
  <p><strong>Simple fix does not work</strong></p>
  
  <p>I implemented the solution to add <code>#!/usr/bin/php-5.6/php-cli</code> at the top of my artisan file in accordance with <a href="http://laravel.io/forum/03-03-2015-console-command-fails-when-executed-by-cpanel" rel="nofollow">http://laravel.io/forum/03-03-2015-console-command-fails-when-executed-by-cpanel</a></p>
  
  <p>But it does not 'bite', when runnning <code>php-5.6 artisan schedule:run</code> on the shell it generates </p>
  
  <blockquote>
    <p>Running scheduled command: 'usr/local/bin/php' 'artisan' download:delays > 'var/sites/p/mysite.com/delayed/storage/logs/cron.log' 2>&amp;1</p>
  </blockquote>
  
  <p>That means it will fire the 'standard' php, which unfortunately for my web provider is 5.3 on cronjobs..</p>
  
  <p><strong>QUESTION: HOW DO I GET CRON JOB TO FIRE PHP 5.6?</strong></p>
  
  <p>Any ideas on how to get the artisan to fire php5.6 rather than server default?</p>