# Cronjob problems in 2.11

**URL:** <https://forum.mautic.org/t/cronjob-problems-in-2-11/10122>\
**Category:** Product Support\
**Created:** [January 13, 2018, 4:01am UTC](https://forum.mautic.org/t/cronjob-problems-in-2-11/10122 "2018-01-13T04:01:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/surge/32/207_2.png) [@surge](https://forum.mautic.org/u/surge)\
**Post date:** [January 13, 2018, 4:01am UTC](https://forum.mautic.org/t/cronjob-problems-in-2-11/10122/1 "2018-01-13T04:01:25Z")

</div>

Hi together,  
I’ve installed the new version and set up a cronjob on my server with the following parameters:

- 
  - 
    - 
      - 
        - php5.5 \<myinstallation\>/mautic/app/console mautic:emails:send  
0 \* \* \* \* php5.5 \<myinstallation\>/app/console mautic:webhooks:process  
0,15,30,45 \* \* \* \* php5.5 \<myinstallation\>/app/console mautic:segments:update  
10,25,40,55 \* \* \* \* php5.5 \<myinstallation\>/app/console mautic:campaigns:trigger  
5,20,35,50 \* \* \* \* php5.5 \<myinstallation\>/app/console mautic:campaigns:rebuild  
0 1 \* \* 0 php5.5 \<myinstallation\>/app/console mautic:iplookup:download

The cronjob doesn’t work and I get the feedback:  
X-Powered-By: PHP/5.5.38  
Content-type: text/html

Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in \<myinstallation\>/app/bundles/EmailBundle/EventListener/ProcessReplySubscriber.php on line **26**

Does someone has experience with this error?

Many Thanks to all

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [January 15, 2018, 1:31am UTC](https://forum.mautic.org/t/cronjob-problems-in-2-11/10122/2 "2018-01-15T01:31:25Z")

</div>

@surge the way to set up cron job is not perfact. You also need some php extention to run mautic smoothly. What hosting you are using?

---

<div class="post-metadata">

**Author:** ![surge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/surge/32/207_2.png) [@surge](https://forum.mautic.org/u/surge)\
**Post date:** [January 15, 2018, 3:41am UTC](https://forum.mautic.org/t/cronjob-problems-in-2-11/10122/3 "2018-01-15T03:41:24Z")

</div>

@Bizcrony: Thats right. Without the phpo extension it is not good. I solved the problem in the meantime with the following cronjob:

- 
  - 
    - 
      - 
        - /usr/bin/php7.1 \<myinstallation\>/app/console mautic:emails:send  
0 \* \* \* \* /usr/bin/php7.1 \<myinstallation\>/app/console mautic:webhooks:process  
0,15,30,45 \* \* \* \* /usr/bin/php7.1 \<myinstallation\>/app/console mautic:segments:update  
10,25,40,55 \* \* \* \* /usr/bin/php7.1 \<myinstallation\>/app/console mautic:campaigns:trigger  
5,20,35,50 \* \* \* \* /usr/bin/php7.1 \<myinstallation\>/app/console mautic:campaigns:rebuild  
0 1 \* \* 0 /usr/bin/php7.1 \<myinstallation\>/app/console mautic:iplookup:download

It did’t work with php5.5, just with the newer version.

Then I got the message:

Mautic is not set to queue email.  
X-Powered-By: PHP/7.1.13  
Content-type: text/html; charset=UTF-8

So I had to change the Configuration for E-Mails to use a Queue.

Now the cronjob seems to be ok.

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [January 15, 2018, 3:57am UTC](https://forum.mautic.org/t/cronjob-problems-in-2-11/10122/4 "2018-01-15T03:57:15Z")

</div>

Cool
