Installing Corn jobs on Hostinger Hosting

Hello
I am facing a problem in activating CornJob functions on Hostinger hosting. I hope for support and assistance

I installed the following CornJob functions in a file with the sh extension based on Hostinger hosting instructions so that it can handle the CornJob functions.

#!/bin/sh
/usr/bin/php /home/u282331204/domains/injazsa.co/public_html/email/app/ mautic:segments:update
/usr/bin/php /home/u282331204/domains/injazsa.co/public_html/email/app/ mautic:campaigns:update
/usr/bin/php /home/u282331204/domains/injazsa.co/public_html/email/app/ mautic:campaigns:trigger
/usr/bin/php /home/u282331204/domains/injazsa.co/public_html/email/app/ mautic:emails:send
/usr/bin/php /home/u282331204/domains/injazsa.co/public_html/email/app/ mautic:iplookup:download

I installed the following command in the Cornjob settings to execute the file

*/5 * * * * /bin/sh /home/u282331204/domains/injazsa.co/public_html/email/run_mautic.sh View Output

But when preparing campaigns, the campaigns do not work and emails are not sent

I want to confirm and help whether it was set up correctly, knowing that Hostinger’s method of adding cornjobs differs from the instructions mentioned on the website mautic



Don’t know if it helps. In my case that is working

* * * * * php /var/www/html/mautic/bin/console mautic:campaigns:trigger
*/5 * * * * php /var/www/html/mautic/bin/console mautic:campaigns:rebuild
*/15 * * * * php /var/www/html/mautic/bin/console mautic:segments:update    
* * * * * php /var/www/html/mautic/bin/console mautic:broadcasts:send
* * * * * php /var/www/html/mautic/bin/console mautic:emails:send

Mautic ist here installed: /var/www/html/mautic

1 Like