John Davidson

Cpanel php version in terminal is different from php version in MultiPHP Manager


I am using laravel 8 and get error when I install dependencies via composer . when I checked the version of PHP from terminal of Cpanel it says the version is 7.1 as following image
terminal php version

but when I check the version from Cpanel MultiPHP Manager it says it's 8.0 as following image

Cpanel MultiPHP Manager version

how I can fix this issue? and upgrade the Cpanel PHP version to 8.0

My Answer:
To fix this issue and upgrade the Cpanel PHP version to 8.0, you can follow these steps:

1. Log in to your Cpanel account.
2. Go to the "Software" section and click on "MultiPHP Manager".
3. Select the domain for which you want to upgrade the PHP version.
4. From the dropdown menu, select PHP version 8.0.
5. Click on "Apply" to save the changes.

After upgrading the PHP version in MultiPHP Manager, you can check the PHP version in the terminal again to ensure that it has been updated to 8.0. You should now be able to install dependencies via composer without any issues related to the PHP version mismatch.

Rate this post

3 of 5 based on 8324 votes


© 2024 - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us