Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Shahin's avatar

PHP Fileinfo extension must be installed/enabled at shared hosting

"PHP Fileinfo extension must be installed/enabled to use Intervention Image " showing this error message when I upload image on my shared hosting. So, I modified my php.ini file using .htaccess file.

Now my .htaccess file looks like,

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/public_html/subfolder
</IfModule>

</IfModule>

subfolder is the laravel project where I want to serve my application.

php.ini file in my subfolder's root folder & for enable PHPFileinfo I write those code in php.ini file

extension=fileinfo.so
extension=pdo.so
extension=pdo_mysql.so

And finally it doesn't work in my shared hosting!! :(

How can I solve it?

0 likes
2 replies
lostdreamer_nl's avatar

is 'mod_suphp' installed on the shared host?

is the fileinfo package installed on the shared host?

Do you have ssh access?

aadiimughal's avatar

yes installed, also have ssh access but still not working

test.two.com.pk

Please or to participate in this conversation.