Cron Jobs


I found this great article on Yii cron jobs at:

I have done mine the same, but the following line does not seem to work:

/var/www/vhosts/yourapp/yii mail/send

I have of course replaced all the values with my correct path etc.

Any help on this?

Is the above line only if you have yii installed on the server?

If you don’t have yii installed on the server, how can you run the send action in the Mail controller?

You need to install Yii first, what error does it give?

I am on shared hosting and copied all Yii files and complete app over to the server.

I have now changed it to:

/var/www/vhosts/vendor/yiisoft/yii2/Yii.php mail/send

No error when doing this, but also no DB change and no email.