Question: I am using Codeigniter to develop my site and it's running on Apache installed in Ubuntu.

I want to run a cron. I am using Codeigniter routing and I have also removed `index.php` from route.

My controller is home function is winner.

I tried following two ways but no one seems to be working.

```none
#49 5 * * * /usr/local/bin/php /var/www/project/web/index.php home winner

13 6 * * * /usr/bin/curl http://www.project.com/home/winner

```

Answer: 
1. Check that lynx installed in your system (e.g. command "whereis lynx")
2. Then edit crontab's config (command "crontab -e")
3. Put this command with MAILTO option in your crontab's config (in the same order, on the first line "mailto" option, on the next line other options):

MAILTO=your@email.com

\*/5 \* \* \* \* /usr/bin/lynx -source <http://www.project.com/home/winner>

With those settings cron will be start every 5 minutes. And if will be some errors there, cron will send it email on address that you set in MAILTO option.

[Tested on Debian 4.7.2]
Try this in your cPanel cron job setup. 
This is to run every 5 minutes:

```none
 */5 * * * * curl http://yoursite.com/class/function

```

<https://www.drupal.org/docs/7/setting-up-cron-for-drupal/configuring-cron-jobs-using-the-cron-command>