You can follow below steps to upgrade the PHP version in WHM but for that you must have to check the compatibility of your hosted website on server.
- Login to WHM.
- Here click on “EasyApache” option under “Software” section.
- Click on “EasyApache (Apache Update)”, here you will find the current Apache configuration under previously saved config. Click on the gear like icon (Customize Profile) under Action column.
- You can choose the Apache version screen according to your need and click on “Next”.
- Now select the PHP version and click on Next.
- There is no need to make any changes in next 2 stage, click on Save and Build.