# Installing Corn jobs on Hostinger Hosting

**URL:** <https://forum.mautic.org/t/installing-corn-jobs-on-hostinger-hosting/29515>\
**Category:** Product Support\
**Created:** [October 2, 2023, 6:11pm UTC](https://forum.mautic.org/t/installing-corn-jobs-on-hostinger-hosting/29515 "2023-10-02T18:11:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![injaz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/injaz/32/10613_2.png) [@injaz](https://forum.mautic.org/u/injaz)\
**Post date:** [October 2, 2023, 6:11pm UTC](https://forum.mautic.org/t/installing-corn-jobs-on-hostinger-hosting/29515/1 "2023-10-02T18:11:38Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2a7935e6cee3224a6f50f0680a4b7600940ef7f1.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7290308e1c5291140bda9083b8198f7ac7c84904.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/751ff90a24519b920b6d374037893d75af21d89a.png)

---

<div class="post-metadata">

**Author:** ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)\
**Post date:** [October 2, 2023, 7:21pm UTC](https://forum.mautic.org/t/installing-corn-jobs-on-hostinger-hosting/29515/2 "2023-10-02T19:21:22Z")

</div>

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

```auto
* * * * * 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
