# Impossible to add Cron Job

**URL:** <https://forum.mautic.org/t/impossible-to-add-cron-job/9123>\
**Category:** Product Support\
**Created:** [July 31, 2017, 5:19pm UTC](https://forum.mautic.org/t/impossible-to-add-cron-job/9123 "2017-07-31T17:19:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![intericad](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@intericad](https://forum.mautic.org/u/intericad)\
**Post date:** [July 31, 2017, 5:19pm UTC](https://forum.mautic.org/t/impossible-to-add-cron-job/9123/1 "2017-07-31T17:19:11Z")

</div>

Hi everybody,  
  
  
  
I’m new user of Mautic and i meet issue when i want add Cons Job via putty.  
  
I use Web hosting 1&1 (not server)  
  
PHP 7.0 web version  
  
Putty and php 4.49  
  
  
  
So, when i run php path/to/my/mautic/app/console mautic:segments:update i have this error message  
  
  
  
**Parse error** : syntax error, unexpected T\_STRING, expecting T\_CONSTANT\_ENCAPSED\_STRING or ‘(’ in **/homepages/path/to/my/mautic/app/console** on line **22**  
  
  
  
  
I think the raison are the version php commande line is older than mautic requirement.  
  
  
  
How can fix this issue?  
  
  
  
Thank you in advance for your help.  
  
  
  
Sincerly,  
  
  
  
Christelle

---

<div class="post-metadata">

**Author:** ![intericad](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@intericad](https://forum.mautic.org/u/intericad)\
**Post date:** [July 31, 2017, 5:19pm UTC](https://forum.mautic.org/t/impossible-to-add-cron-job/9123/2 "2017-07-31T17:19:11Z")

</div>

Hi everybody,

I’m new user of Mautic and i meet issue when i want add Cons Job via putty.  
I use Web hosting 1&1 (not server)  
PHP 7.0 web version  
Putty and php 4.49

So, when i run php path/to/my/mautic/app/console mautic:segments:update i have this error message

**Parse error** : syntax error, unexpected T\_STRING, expecting T\_CONSTANT\_ENCAPSED\_STRING or ‘(’ in **/homepages/path/to/my/mautic/app/console** on line **22**

I think the raison are the version php commande line is older than mautic requirement.

How can fix this issue?

Thank you in advance for your help.

Sincerly,

Christelle

---

<div class="post-metadata">

**Author:** ![intericad](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@intericad](https://forum.mautic.org/u/intericad)\
**Post date:** [August 1, 2017, 9:05am UTC](https://forum.mautic.org/t/impossible-to-add-cron-job/9123/3 "2017-08-01T09:05:26Z")

</div>

Hi all,

I have find solution about my problem and share for the users meet same issue:

On putty i remplace php path/to/my/mautic/app/console mautic:segments:update

by

php5.5 path/to/my/mautic/app/console mautic:segments:update  
and all are good.

Sincerly,

Christelle
