# Campaigns doesn't run trigger automatically based in cron jobs

**URL:** <https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830>\
**Category:** Product Support\
**Created:** [December 12, 2016, 11:29pm UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830 "2016-12-12T23:29:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![duplexcleaning](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/duplexcleaning/32/7211_2.png) [@duplexcleaning](https://forum.mautic.org/u/duplexcleaning)\
**Post date:** [December 12, 2016, 11:29pm UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830/1 "2016-12-12T23:29:01Z")

</div>

Campaign trigger is not running automatically / responding based in command defined in cron jobs.  
  
I have set up cron jobs under Cpanel with the following commands that I think should do the trigger for all events defined in the maps in the Campaign item.  
  
php /home/user1/public\_html/mautic/app/console mautic:campaigns:trigger (every minute)  
php /home/user1/public\_html/mautic/app/console mautic:segments:update (every minute)  
php /home/user1/public\_html/mautic/app/console mautic:campaigns:rebuild (once a day)  
php /home/user1/public\_html/mautic/app/console mautic:campaigns:update (every minute)  
  
In the campaign map, in the first level I have the following actions to:  
  
- Add points  
- Change contact's stage  
- Add to segment  
  
When I tested the form submission which is takes in the place of top level item (campaign form), and submitted the data, and waited for about 5 minutes, there is no change being made to the contact's stage and not having points added.  
  
If I run campaign manually via SSH Shell command interface, the campaign runs successfully and displaying results for the events (first level, non-events, scheduled) such as showing 100% percentage for events completed.  
  
Any assistance would be greatly appreciated.  
  
Details:  
| Mautic version | 2.20  
| PHP version | 5.6.28

---

<div class="post-metadata">

**Author:** ![duplexcleaning](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/duplexcleaning/32/7211_2.png) [@duplexcleaning](https://forum.mautic.org/u/duplexcleaning)\
**Post date:** [December 12, 2016, 11:29pm UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830/2 "2016-12-12T23:29:01Z")

</div>

Campaign trigger is not running automatically / responding based in command defined in cron jobs.

I have set up cron jobs under Cpanel with the following commands that I think should do the trigger for all events defined in the maps in the Campaign item.

php /home/user1/public\_html/mautic/app/console mautic:campaigns:trigger (every minute)  
php /home/user1/public\_html/mautic/app/console mautic:segments:update (every minute)  
php /home/user1/public\_html/mautic/app/console mautic:campaigns:rebuild (once a day)  
php /home/user1/public\_html/mautic/app/console mautic:campaigns:update (every minute)

In the campaign map, in the first level I have the following actions to:

- Add points
- Change contact’s stage
- Add to segment

When I tested the form submission which is takes in the place of top level item (campaign form), and submitted the data, and waited for about 5 minutes, there is no change being made to the contact’s stage and not having points added.

If I run campaign manually via SSH Shell command interface, the campaign runs successfully and displaying results for the events (first level, non-events, scheduled) such as showing 100% percentage for events completed.

Any assistance would be greatly appreciated.

Details:  
| Mautic version | 2.20  
| PHP version | 5.6.28

---

<div class="post-metadata">

**Author:** ![designedbyks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/designedbyks/32/6742_2.png) [@designedbyks](https://forum.mautic.org/u/designedbyks)\
**Post date:** [March 27, 2022, 5:47am UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830/3 "2022-03-27T05:47:15Z")

</div>

Have you found solution?

---

<div class="post-metadata">

**Author:** ![duplexcleaning](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/duplexcleaning/32/7211_2.png) [@duplexcleaning](https://forum.mautic.org/u/duplexcleaning)\
**Post date:** [March 27, 2022, 10:19pm UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830/4 "2022-03-27T22:19:39Z")

</div>

Thanks @designedbyks I realised this is a very long time ago but it was already resolved somehow. Thanks for your attention.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 29, 2022, 4:50am UTC](https://forum.mautic.org/t/campaigns-doesnt-run-trigger-automatically-based-in-cron-jobs/6830/5 "2022-03-29T04:50:28Z")

</div>

Well cronjob setup is the nr. issue with Mautic. There are a bunch of tutorials on the web, pretty much all of them are good. Just please don’t run your crons at the same time, try to do it sequentially.
