Note I'm on Centos with Nginx web server. Open the crontab file in vi editor on behalf of the nginx user:
[kiat@reporting misoro]$ sudo -u nginx crontab -e
no crontab for nginx - using an empty one
crontab: installing new crontab
That will launch the vi editor.
Press Insert key.
Paste:
*/1 * * * * php /usr/share/nginx/html/misoro/bin/console oro:cron --env=prod > /dev/null
Notes:
/usr/share/nginx/html/misoro
.Press Esc key.
Enter :wq to save and quite vi editor.
[kiat@reporting misoro]$ sudo cat /var/spool/cron/nginx
*/1 * * * * php /usr/share/nginx/html/misoro/bin/console oro:cron --env=prod > /dev/null
[kiat@reporting misoro]$ sudo systemctl restart crond.service