Mautic Community Forums

Cron Job - ISPConfig

Hi,



I am currently running the V.2.5.1 of Mautic.

I use as a Hosting Control Panel: ISP Config http://www.ispconfig.org With Ubuntu 14.4.5 LTS x64.



In the Control Panel of ISPConfig it’s possible setup as many Cron Jobs I want,



Since I enable the log output, I saw that the Cron Job is running, but mautic does not update anything.

If I run manually by SSH this commands, the Cron Job is working fine:



I am inside my root: /var/www/mymauticwebsite.com/web and I run:



php app/console mautic:segments:update

php app/console mautic:campaigns:rebuild

php app/console mautic:campaigns:trigger



And it’s working!



ISP Config is running by default with PHP PHP 5.5.9-1ubuntu4.20, but I am using for mautic an additional php version: php-7.0.2



php_version.png





This is what is written in the command to run:



/opt/php-7.0.2/bin/php-cgi /var/www/mymauticwebsite.com/web/app/console mautic:segments:update --env=prod



Like in this picture:

cron_job_issue.png





Most probably the command to run is not right, any of you guys can help me to solve this issue?





Thank you!

Hi,

I am currently running the V.2.5.1 of Mautic.
I use as a Hosting Control Panel: ISP Config http://www.ispconfig.org With Ubuntu 14.4.5 LTS x64.

In the Control Panel of ISPConfig it’s possible setup as many Cron Jobs I want,

Since I enable the log output, I saw that the Cron Job is running, but mautic does not update anything.
If I run manually by SSH this commands, the Cron Job is working fine:

I am inside my root: /var/www/mymauticwebsite.com/web and I run:

php app/console mautic:segments:update
php app/console mautic:campaigns:rebuild
php app/console mautic:campaigns:trigger

And it’s working!

ISP Config is running by default with PHP PHP 5.5.9-1ubuntu4.20, but I am using for mautic an additional php version: php-7.0.2

This is what is written in the command to run:

/opt/php-7.0.2/bin/php-cgi /var/www/mymauticwebsite.com/web/app/console mautic:segments:update --env=prod

Like in this picture:

Most probably the command to run is not right, any of you guys can help me to solve this issue?

Thank you!

Hi, I try with /opt/php-7.0.2/bin/php but still don’t working,

I also tried to use the default PHP configuration with PHP5.5.9 with example:

/etc/php5/php /var/www/mywebsite.com/web/app/console mautic:segments:update --env=prod

but also in this case still don’t working… :frowning:

Hi, Shall Access:

server: auto.leadsbeam.com
user: leadsbeammm
pass: mKn!3sMQvC

Thank you!