I have tried and browsed a lot regarding how to set cron job with CakePHP and zpanel
In zpanel I tried different types url
For example
- domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron(Error: script does not exist)
Then I tried a file domain_folder/app/cronjob.php(Worked)
it worked but I am confused how can I call "domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron" from cronjob.php
I am in a really twisted state, I have tried this for about 10 hours by trying many methods.
Any zpanel or CakePHP expert please just tell me the best way to set this as a cron job.
Can I add cron job through ssh in zpanel? If I can add this one through ssh "domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron" Then it would be great. I am ready to try anything.
The OS is CentOS