A better way
Article     |     Published April 2020

Getting started with Mautic v3

Mautic 3 (M3) is a big leap forward. You won’t notice much as a casual user, but behind the scenes, a lot has changed. In a particular, compatibility with PHP 7.2 and 7.3 means that we will see significant improvements in speed.

We’re currently trialling v3 on a few systems, and there are some subtle changes that you’ll need to be aware of when setting things up.

We’ve compiled a few tips from our experience of moving to v3 that will hopefully speed your setup times along.

Tip 1. The console for Mautic cron jobs has moved

Most of the tutorials you’ll find online for setting up the Mautic cron jobs are based on v2. Whilst nothing has changed on the commands themselves, one big ‘gotcha’ is that the console file is now located in bin rather than app

So rather than:

php /var/www/html/wp-content/console mautic:segments:update

You’ll be doing:

php /var/www/html/bin/console mautic:segments:update

And whilst we’re talking about CRON jobs for Mautic, we thought we’d share our current setup:

0,15,30,45 * * * * 	user 	php /path-to-mautic/bin/console mautic:segments:update 	
5,20,35,50 * * * * 	user 	php /path-to-mautic/bin/console mautic:campaigns:update 	
10,25,40,55 * * * * 	user 	php /path-to-mautic/bin/console mautic:campaigns:trigger 	
10,25,40,55 * * * * 	user 	php /path-to-mautic/bin/console mautic:messages:send 	
0,15,30,45 * * * * 	user 	php /path-to-mautic/bin/console mautic:emails:send 	
0,15,30,45 * * * * 	user 	php /path-to-mautic/bin/console mautic:email:fetch 	
* */30 * * * 	user 	php /path-to-mautic/bin/console mautic:webhooks:process 	
0 0 1 * * 	user 	php /path-to-mautic/bin/console mautic:iplookup:download

 

Head Office

1A Manor Farm Woodford Halse Northamptonshire NN11 3UB

Studio

55a High Street Bridgnorth Shropshire WV16 4DX