Hello
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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.