Question

How do I use the cyberpanel cron job?

Hello

I doubt cyeberpanel’s Cron Jobs

I’m trying to set up the Mautic 2.15 cron job on Cyberpanel

not work /usr/local/lsws/lsphp72/bin/php /home/roupasatacado.vendamais.xyz/public_html/app/console mautic:campaigns:trigger

not work /home/roupasatacado.vendamais.xyz/public_html/app/console mautic:campaigns:trigger

How do I use the cyberpanel cron job?

I installed Cyberpanel with one click (marketplace) DigitalOcean

Ubuntu 18 Cyberpanel PHP 7.2

tks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@KFerdinandov

In this case, the path is correct. But I am not sure if he runs the command directly via CLI it runs or not.

First, need to make sure that this command does not have any problem running via CLI.

And for more details on cron job, you can see my answer on CyberPanel forums -> https://forums.cyberpanel.net/discussion/comment/6187/#Comment_6187

Hi @administrador28c2b826ad7c0,

I’ve checked the mautic documentation here - Article. It seems you need to do the following

php /path/to/mautic/app/console mautic:campaigns:trigger --env=prod

It seems your path and exact command seem to be correct. This would mean you are not calling PHP properly. To find the exact path, you can try

whereis php

From there, you can get the exact php path and set the cron job. Don’t forget to add the execution time as well.

Kind regards, Kalin