title: Codeigniter 2.x cron issues
body: <p>I need to setup cron jobs on a codeigniter site on a shared host that uses cpanel. The cron script works when run via a browser, however, I first tried running it in cron using curl and then wget, but neither of these worked. Ultimately I will want to run the jobs via php/cli. </p>
  
  <p>As for why the curl and wget methods don't work, could it have anything to do with the fact that the site is completely SSL, and htaccess is used to rewrite all http requests to https? To be honest, I haven't actually ruled out the fact that the host may have disabled cron for some strange reason.</p>
  
  <p>EDIT: Have checked with the host and cron is running fine!</p>
  
  <p>I read an <a href="http://stevethomas.com.au/php/how-to-run-cron-jobs-in-codeigniter.html" rel="nofollow">article</a> here about cron and CI CLI and it gives this example;</p>
  
  <pre><code>/usr/local/bin/php -f /home/clinic/public_html/index.php cron foo
  </code></pre>
  
  <p>I have tried that method but my controler is inside a subdirectory eg /controlers/utility/cron.php and I have CI setup to not use the index.php So how would I run cron in this way?</p>