Steps on How to Install the latest PHP version in WHM
Installation of latest PHP version can be done directly within WHM’s EasyApache 4 interface. It
can be installed and updated PHP, Apache, and several other components of the Webserver using
this interface.
These are the steps to take:
1. Log into WHM.
2. Then go to EasyApache 4 from the search bar and then click on it.
3. Select Customize under Currently Installed Packages.
4. Click on PHP Versions. Select the version for installation by clicking the switch icon to the far right of the version.
5. Review the output by selecting Review, to ensure the successful installation of PHP version you marked.
6. After that, click on Provision, which will install the selected PHP versions.
7. Once the process is completed, you will get the latest version of PHP installed & integrated on the web server.
That's all you need to do.