Cause:
The project requires PHP 8.2 or higher, but the hosting account uses an older PHP version.
Solution:
-
Log in to your cPanel.
-
Go to Select PHP Version .
-
Choose PHP 8.2 or above, then click Set as current / Apply.
-
After saving, check version using:
- If Composer still fails, run it explicitly with:
/usr/local/bin/php82 composer install or/usr/local/bin/php82 composer update
Composer will now run correctly and install dependencies.