You can follow below steps to install PHP extension in WHM:
- Login to WHM.
- Here click on “EasyApache 4” under “Software”.
- A new window will appear, here you have to click on “Customize” under “Currently installed Packages” section.
- Now click on “PHP Extensions”.
- You will see the search bar where you have to search for the extension which you want to install.
- You have to mark the extension which you want to enable; also you have to do this for particular PHP version.
- Now you have to click on “Review” and check the output that your PHP extension installed or not.
- At last click on”Provision” from which PHP extensions install.