Salut,
Je ne comprends pas où est le problème.
Voici mes commandes (en root) :
sudo crontab -u myuser -l
MAILTO=“”
*/5 * * * * /usr/bin/php8.2 -f /home/myuser/web/cloud.mydomain.com/public_html/cron.php >> /home/myuser/cron.log 2>&1
ls -la /usr/bin/php8.2
-rwxr-xr-x 1 root root 5695272 Feb 13 16:57 /usr/bin/php8.2
sudo -u myuser php -f /home/myuser/web/cloud.mydomain.com/public_html/cron.php
La dernière ligne ne renvoie pas d’erreur.
J’ai donc mis php au lieu de php8.2 et j’ai viré provisoirement >> /home/myuser/cron.log 2>&1
Mais j’ai ça comme warning :
Some jobs have not been executed since il y a 2 jours. Please consider increasing the execution frequency.
Une idée de ce qui cloche ? ^^
Merci.