I have set some commands in my crontab, but it seems like they are not executed.
- PHP version is 7+
- CentOS 7
This is my list when I run "crontab -u username -l"
45 0 * * * username /usr/bin/php /var/www/production/site/scripts/process1.php
*/2 * * * * username /usr/bin/php /var/www/production/site/scripts/process2.php
25 * * * * username /usr/bin/php /var/www/production/api/scripts/process3.php
username is an existing user and has rights to the PHP files. Same results when I use the root user.
When I run "Which php" I get the result below:
/usr/bin/php
So that seems to be OK too.
/var/log/cron shows me lines like this, so it appears to be called
CROND[29053]: (username) CMD (username /usr/bin/php /var/www/production/site/scripts/process1.php)
When I run the commands manually all works well, so the processx.php files seem to be OK.
I am running out of ideas... Can anybody point me to the right direction to tackle my (probably silly) mistake?