Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.23.
Getting this error :
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.23.
php -v shows PHP 8.1.10.
I have already updated to php 8.1
[brokergenies@server public_html]$ php -v PHP 8.1.10 (cli) (built: Sep 6 2022 18:12:49) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.10, Copyright (c) Zend Technologies with Zend OPcache v8.1.10, Copyright (c), by Zend Technologies
[brokersadda@server dev]$ sudo update-alternatives --config php
sudo: effective uid is not 0, is /bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
@FounderStartup ah ok. Im a Debian family guy (Ubuntu, Linux mint etc). Never tried centos. Try finding some guides on how to set the default php version on centos
@FounderStartup ah you are using cpanel. That's probably the problem. You only changed php version for your project and not for the server. See if you can change it globally
@Sinnbeck I have a 5 account subscription of cpanel. And I am using two versions on all the five accounts. I this the issue ? Do I need to use only all versions on all the accounts ?