skip to Main Content

Cron Job Syntax – CPanel

I've never created, nor used a cron job before, but what I've gathered from numerous questions and answers on SO is that the process is fairly simple and involves something like the following: Create bash file with shell commands Edit…

VIEW QUESTION

class CI_controller not found when running cronjob – CPanel

All day spent trying to figure it out. cronjob cpanel command: php -q /home/domain/public_html/application/controllers/Cronjob.php cronjob.php <?php class Cronjob extends CI_Controller { public function __construct(){ parent::__construct(); } public function transactions(){ $addresses = $this->db->get_where('bitcoin_addresses')->result(); foreach ($addresses as $key => $value) { $id…

VIEW QUESTION

How to run Cron Job on CodeIgniter – CPanel

I have a file named cron.php that exists in the application/controllers/admin directory in my CodeIgniter project. From what I understand, the correct cron command to perform the "test" method in the cron.php file in cPanel would be: /opt/php56/bin/php /home4/username/public_html/index.php cron…

VIEW QUESTION
Back To Top
Search