Crontab command

I managed to get my cron working on local, and live when i type in console.

php yii cron/reports

But my crontab doesn’t trigger. Here is my crontab setting

1 0 * * * /var/www/html/php yii cron/reports

Any idea why? thanks.

Don’t use php interpreter directly in cron. The yii is a bash file which knows it must use php to execute.

#!/usr/bin/env php
<?php 
[...]

So, use:
1 0 * * * /absolute/path/to/yii cron/reports

so in my case it would be

1 0 * * * /var/www/html/yii cron/reports

right?

It is a php file without extension not full bash script file per se. It should work with full interpreter path

Is your php interpreter executable found in directory /var/www/html/?

Check with command which php

Right. It should work on most Linux distributions.