uitsbd Posted December 27, 2015 Report Posted December 27, 2015 Hello, I am using Blesta to maintain our cPanel. I want to make Corn Job auto update on my system. Now, I have to update daily, it's totally frustrating. Can you please let me know the steps? Thanks! Regards, Adnan Quote
0 Nelsa Posted December 27, 2015 Report Posted December 27, 2015 I will post steps to add cron job but keep in mind that most providers(webhostingbuzz and site5 have it in TOS if not changed)..don't alow CLI cron jobs under 30 minutes on shared hosting,you can see it and even set it but it won't execute.... Now log in to cpanel and click on cron jobs ,under common settings select "once per five minute" than under command paste your cron command,you can find cron command in blesta settings->system->automation IF YOUR provider don't allow CLI cron jobs at 15 minutes than insted CLI set web cron and it will execute(confirmed for WHB),web cron is like this Steps are same in cpanel just insted php command you can see in blesta settings->system->automation put this GET https://yoururl.com/blesta_dir/cron/?cron_key=PUT_HERE_CRON_KEY Just change url,blesta_dir and cron keyCron key can be found also at blesta settings->system->automation Just to be clear unlike CLI cron, Web cron can be set on different server,hosting account you have with other provider,third party cron provider....etc and it will work same job. Paul 1 Quote
0 Michael Posted December 27, 2015 Report Posted December 27, 2015 The normal cron job should work fine though on cPanel just change the php location to /usr/local/bin/php. Quote
0 evolvewh Posted December 27, 2015 Report Posted December 27, 2015 I think there is enough evidence on this forum to show that the 'standard' cron command doesn't work well with cPanel. You may want to reference my post here: http://www.blesta.com/forums/index.php?/topic/5300-auto-debit-cron-stopped-since-dst/page-2#entry40034 Quote
0 WebhostingNZ.com Posted December 28, 2015 Report Posted December 28, 2015 On cPanel you could try: /usr/bin/php-cli /home/username/public_html/[blestadir/]index.php cron php didn't work for me, I needed to use php-cli I used Nelsa's web cron suggestion above until I tried with php-cli. Quote
0 Paul Posted December 28, 2015 Report Posted December 28, 2015 On cPanel you could try: /usr/bin/php-cli /home/username/public_html/[blestadir/]index.php cron php didn't work for me, I needed to use php-cli I used Nelsa's web cron suggestion above until I tried with php-cli. Interesting. On our cPanel dev server php-cli is a symlink to /usr/local/bin/php Michael 1 Quote
Question
uitsbd
Hello,
I am using Blesta to maintain our cPanel. I want to make Corn Job auto update on my system. Now, I have to update daily, it's totally frustrating. Can you please let me know the steps? Thanks!
Regards,
Adnan
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.