The crontabs in
/etc/cron.d/ require a username in the 6th field, as does
/etc/crontab. User-based crontabs in
/var/spool/crontabs/ and via
crontab -e do not have a username field.
Halfgaar's answer about the timing of the one that runs every 10 minutes is also correct.
Currently, these cron jobs execute
/var/www/site1/helper as the
php user rather than executing
/usr/bin/php and passing it the arguments
/var/www/site1/helper post:make. This will work if your have a
php user, the file is executable and has an appropriate shebang. (i.e
#!/usr/bin/php as the first line.) Otherwise, it will log an error in
The example below runs them as the
httpd user and has an explicit path to the PHP executable. You should choose an appropriate user.
0 0 * * * httpd /usr/bin/php /var/www/site1/helper post:make
*/10 * * * * httpd /usr/bin/php /var/www/site1/helper post:update