I think when youâre using a specific userâs crontab, you donât include the user name. So this would work in the system-wide crontab (âcrontab -eâ or ânano /etc/crontabâ)
* * * * * www-data cd /var/www/html/crm; php -f cron.php > /dev/null 2>&1
But it wouldnât work in the userâs crontab (âcrontab -e -u www-dataâ), where you should put only this:
* * * * * cd /var/www/html/crm; php -f cron.php > /dev/null 2>&1