Understanding Cron Jobs – A Mautic Minute

Do you have your Mautic forms, landing pages and campaign emails ready to go but nothing is happening? If you’re using the self-hosted version of Mautic, you need to check your CRON jobs.

Cron jobs are one of the most frequent topics in our Slack chats.

Cron is a time-based job scheduler in Unix-like computer operating systems. Cron schedules jobs (commands or shell scripts) to run at fixed times, dates, or intervals.  Mautic requires cron jobs to update contacts, campaigns and execute campaign actions.  Mautic also optionally uses cron jobs to send emails and perform other related tasks.

If you’re in the marketing department, that may sound like “greek” to you.  In this Mautic Minute, we explain cron jobs and visually explain each part.

Mautic requires three cron jobs:

  • Keeping segments current – php /path/to/mautic/app/console mautic:segments:update
  • Keeping campaigns updated –  php /path/to/mautic/app/console mautic:campaigns:update
  • Trigger campaign events – php /path/to/mautic/app/console mautic:campaigns:trigger

cron jobs in CPanel

These paths will change based on your web server and Mautic installation.

  • if you’re not sure, ask your web host for the path to php .
  • if you’re comfortable with the shell and have access, run this command: which php.
  • to find the root of your website run: pwd – then add the Mautic directories after the response (see the image below).

There are several optional cron jobs, depending on your configuration.  You can read the full documentation at  https://mautic.org/docs/en/setup/cron_jobs.html. There are a few host-specific notes in the full documentation and it is worthwhile to completely read through.

 

 

Make sure you subscribe to our YouTube channel.

If you’d like to suggest a topic, please head over to the #support channel and message @imrodmartin.

Share this blog article:
Picture of dbhurley

dbhurley

More 📝's in ''

For marketers

Navigating Gmail and Yahoo’s New Spam Policies: What Mautic Users Need to Know

Email marketing remains a cornerstone in the digital marketing toolbox for businesses big and small. Keeping on top of the latest developments in the industry is therefore vital to ensure your success. Here’s some important news about sending to Gmail addresses that you may need to factor into your marketing.

For marketers

9 Tips To Secure Data in Email Marketing

Email marketing has become an essential part of the modern business landscape, with companies of all sizes using it to reach their customers and prospects. With that, there is also an increased risk of data breaches and security threats. That’s why it’s essential to take steps to secure data in email marketing

Search

Use the search bar above by typing terms and pressing enter.