I’ve installed PHP 8.1.6. Works flawless… except for my cron task for a laravel site. This is invoked as
cd /home/website/public_html && /bin/php artisan schedule:run >> /dev/null 2>&1
When I logon as root to the terminal the command php --version shows 8.1.6 but /bin/php --version is still shows version 7.4
I can’t seem to find how to make 8.1.6 the default. (/bin/php81 also does the trick but I’d rather have /bin/php set to the latest version so I don’t have to update all cron-tasks)
thanks in advance!
|OS type and version||Centos 7|