Now, it is very easy to install the PHP 8 version and all its required extensions from the WHM panel using EasyApache 4. You can watch the video tutorial from this link. Here I am providing the simple steps to do it from the WHM interface:
- Log in to WHM panel as root and get the 'EasyApache 4' under the 'Software' section by searching it.
- You can select the 'Customize' option on the 'Currently Installed Packages' section.
- It will show you a bunch of Apache and PHP options. Go to the 'PHP Versions' area and on the 2nd page, you can see the PHP 8 version is showing as disabled.
- Make it enabled and choose the option PHP 8.0 and Extensions.
- Then go to the 'Review' section and the 'Provision' the changes.
- It will take some time to install the packages and you will get a 'Completion' message there once it is all done.