Cron Jobs Issues with Mautic

EasyApache 4
**My Mautic version is: 4.4.10
My PHP 80, PHP 8.0.29-1.1.3.cpanel
extention: php80-php-fileinfo
cPanel & WHM on AlmaLinux
OS: AlmaLinux v8.8.0 STANDARD kvm
cPanel Version 112.0.5

Hi, everyone,

Are we optimizing the best Cron Job configurations as follows:

5min
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/app/console mautic:segments:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/app/console mautic:campaigns:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/app/console mautic:campaigns:trigger

5min
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/app/console mautic:emails:send

twice a month
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/app/console mautic:iplookup:download

Regards,
Hal

it should be /bin/console

2 Likes

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:segments:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:campaigns:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:campaigns:trigger

5min
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:emails:send

twice a month
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:iplookup:download

There are 15 cron jobs that make Mautic run well and all should look similar.

1 Like

Ayayron,

What is a source listing of the 15 Cron Jobs?
Regards,
Hal

Remember only replace the app with bin for it to work correctly like the above cron jobs show.

This is on Mautic itself.

Hi everyone,

Revised Cron Job:
CLI
/usr/local/bin/php --version

5min
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:segments:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:campaigns:update

/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:campaigns:trigger

5min
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:emails:send

twice a month
/usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:iplookup:download

See the screenshot images for details:

The only Con Job exception is
[root@35-236-118-198 ~]# /usr/local/bin/php /home/mautic/public_html/mautic.devced.com/bin/console mautic:iplookup:download
Automatically fetching IP lookup data failed.

Error message:
MaxMind messages read: “Databases must be downloaded and periodically updated”

Question: How do I download and periodically update?

Regards,
Hal

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.