1. Image doesn't load correctly or shows broken
2. File (i.e: csv, xlsx etc.) will not be downloaded or cannot be exported
Solution:
in WHM:
- Navigate to Software -> EasyApache4
- Click the button that says Customize next to Currently Installed Packages
- Click PHP Extensions
- Search for Fileinfo in the search bar and select the extensions you would like to install
- Click Review
- After looking over the proposed changes, scroll to the bottom of the screen and click provision.
In cPanel using PHP Selector (if not works even installed in WHM):
In cPanel using ini file (if not works even installed in WHM):
Other:
- Install PHP FIleInfo Extension (if not installed)
- Enable php_fileinfo in php.ini
extension=php_fileinfo.so (Linux)