title: Trying to get cron.php working in Cpanel for Magento
body: <p>I have been using this </p>
  
  <p><code>/usr/bin/php -q /home/username/public_html/sub.domain.com/cron.php</code> as my command </p>
  
  <p>for the cron job, but I dont get anything. No customer emails, no errors, nothing. When I use </p>
  
  <p><code>php /home/username/public_html/sub.domain.com/cron.php</code> </p>
  
  <p>I get the error (Or not error) </p>
  
  <pre><code>X-Powered-By: PHP/5.4.37
  Content-type: text/html
  </code></pre>
  
  <p>and if I use </p>
  
  <pre><code>/home/username/public_html/sub.domain.com/cron.php
  </code></pre>
  
  <p>I get the overly long error</p>
  
  <pre><code>/home/username/public_html/sub.domain.com/cron.php: line 1: ?php: No such file or directory
  /home/username/public_html/sub.domain.com/cron.php: line 2: /bin: is a directory
  /home/username/public_html/sub.domain.com/cron.php: line 3: access-logs: command not found
  /home/username/public_html/sub.domain.com/cron.php: line 4: access-logs: command not found
  /home/username/public_html/sub.domain.com/cron.php: line 5: access-logs: command not found
  /home/username/public_html/sub.domain.com/cron.php: line 6: access-logs: command not found
  /home/username/public_html/sub.domain.com/cron.php: line 7: syntax error near unexpected token `('
  /home/username/public_html/sub.domain.com/cron.php: line 7: ` * This source file is subject to the Open Software License (OSL 3.0)'
  </code></pre>
  
  <p>Any idea what im doing wrong here?</p>
  
  <p>FYI: The permissions of the cron.php file is 744.
  (For search results)
  This is for a Magento 1.9 install that is not sending emails. Check below for the fixes.</p>