You can follow below steps to install PHP module fileinfo:
Login to WHM.
Here click on “EasyApache4” under Software.
Now click on “Customize” button.
You have to click on “PHP Extensions” tab.
You will find a search bar, you have search any php module and then install it.
Click on “Review”...