C
C
coderisimo2020-02-06 12:28:53
Yii
coderisimo, 2020-02-06 12:28:53

How can I still run a Yii console command via cron?

I would like to taste the benefits of civilization from krona. Every minute. If I go to the console and run in manual mode


php yii hello/test

everything is working. But not in the crown.

* * * * * /usr/local/bin/php /home/webko/project.webko.net/project yii hello/test >> /home/webko/logs/myscript.log 2>&1

There is just silence in the log . If I intentionally create an error in the entry above, I see it in the log. Otherwise, nothing. I don’t even know how else to dance with a tambourine))). The cron task is created via cpanel

if I check via crontab -e I
see in the output SHELL="/usr/local/cpanel/bin/jailshell"

* * * * * /usr/local/bin/php /home/webko/project.webko. net/project yii hello/test >> /home/webko/logs/myscript.log 2>&1

how long? otkel? and where to dig?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-02-06
@coderisimo

Good afternoon.

/usr/local/bin/php /home/webko/project.webko.net/project/yii hello/test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question