Codeigniter cron job not working
I have a cron job like this: /usr/bin/php /var/www/website/public_html/index.php className methodName If I run it in terminal it runs, but outputs nothing. If I pass a wrong method name it runs successfully. If I pass wrong class name it outputs a website 404 error. I also have a routing which adds "en" into url, for example http://www.website.com/en/home/index could this be the problem? my settings of config.php are: $config['uri_protocol'] = 'AUTO'; $config['index_page'] = ''; the steps to prepare CodeIgniter 2.x for cron-jobs via CLI (command line interface): 1st: create a copy of your root