Setting Cron Plesk

Hi everyone, I’ve been trying for two days to set up a cron job on AlmaLinux 8 with Plesk. I’m using this script but it doesn’t work:
/opt/plesk/php/7.4/bin/php -f /var/www/vhosts/USER/httpdocs/public/legacy/cron.php > /dev/null 2>&1
Can someone tell me the correct path?t/httpdocs/public/legacy/cron.php > /dev/null 2>&1

Assuming your paths are correct… did you double-check?

Maybe try to change the current directory first

cd /var/www/vhosts/USER/httpdocs/public/legacy/; /opt/plesk/php/7.4/bin/php -f cron.php > /dev/null 2>&1

This will help you: