Can anyne setup cron job in cakephp ?Please help me

I make on worker env. on aws and cakephp app root added cron.yml file

but my controllers method not found that nginx server following error shown

2020/09/09 09:50:00 [error] 27122#0: *5 open() “/var/www/html/cronApp/conmpany/subscriptionExpried” failed (2: No such file or directory), client:, server: , request: “POST /cronApp/contractors/subscriptionExpried HTTP/1.1”, host: “localhost”

Please any one help !!!

Did you see this post. @Zuluru points out the need to write your code in a Command rather than a Controller. Perhaps the discussion and links will set you on the right path.

1 Like

Thank you For Quick reply, About reminding me console application in cakephp :innocent: :relaxed: