Mautic and Cron Jobs

Here at Liquid Logic, we love to help the Mautic community grow and flourish. From experience in setting up Mautic for our clients, we wanted to share a few tips from different hosting providers in 2016 and 2017. We will try to update this list regularly the more we discover with various hosts.

Cron Jobs Paths with SiteGround hosting:

/usr/local/php56/bin/php-cli /home/your-cpanel-user-name/public_html/

Cron Jobs Path with FastComet hosting:

usr/local/php56/bin/php-cli /home/your-cpanel-user-name/public_html/

Cron Jobs Path with NetVirtue hosting:

/usr/local/bin/php /home/your-cpanel-user-name/public_html/

 

So an example to run the Mautic Cron jobs would be:

/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:webhooks:process
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:segments:update
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:campaigns:rebuild
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:campaigns:trigger
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:emails:send
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:email:fetch
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:social:monitoring
/usr/local/bin/php /home/your-cpanel-user-name/folder-name/app/console mautic:iplookup:download

 

Note the spaces after “/bin/php ” and “/app/console ” and make sure not to delete them.

Leave a Reply