So I’m currently running a larval site and im running two cron commands.
I run them in the public_html folder
sudo php artisan app:sitemap-generate
sudo php artisan schedule:run
If i run both the commands within the CLI it works fine
Also if i run them like this in the CLI also works fine
su user
and then run cd /home/username/web/website.com/public_html/ && /usr/bin/php8.3 /home/username/web/website.com/public_html/artisan app:sitemap-generate