Enable fileinfo extension

H.H

It's on a Centos 7, PHP 5.5.38

I thought the fileinfo was enabled by default, but phpinfo() shows below:

'./configure' **'--disable-fileinfo'** '--disable-opcache' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'

So how do I enable this fileinfo?

The current extension folder doesn't have fileinfo.so, so I don't know what I need to do now to enable this.

H.H

This solved my problem, using WHM/Cpanel recompile Apache and PHP

https://www.opensource-excellence.com/blog/item/464-how-to-install-fileinfo-in-whm.html

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I install / enable the PHP phar extension?

How to enable FinderSync Extension in macOS System Preferences

Enable Chrome extension for certain urls?

Network Extension entitlement, how to enable it?

PHP Fileinfo extension must be installed/enabled to use Intervention Image

Laravel file download - php_fileinfo extension not enabled

Enable a VSIX extension in a certain language?

How to auto-enable Chrome extension?

How to enable php-Mcrypt extension in Laravel Homestead

Installing Jupyter Extension, Failure to Enable 'nbextension'

Authzforce ABAC - Fail to Enable a Result Postprocessor extension on a domain

Wamp and Php extension one click enable

Enable/disable Chrome plugin from extension

How can i get from a FileInfo[] the file full name full directory including the file extension?

Enable soft wrap filtered by extension in Atom Editor

Dispose FileInfo()

How to dynamically enable/disable Responsive extension

Can not enable ionCube extension

Cannot install/enable shell extension "Vitals"

"PHP Fileinfo extension must be installed/enabled to use Intervention Image." error

How to enable SQL authentication using SqlIaasExtension extension

Enable the php_fileinfo extension?

Unable to guess the MIME type as no guessers are available. How do I install php_fileinfo extension in cPanel?

How to enable Sign in with Google in Chrome Extension?

How to enable sockets extension in php-fpm?

Selenium start chrome and enable extension

How can I install extension php_fileinfo in my php.ini in Windows 10

can not find *"extension=php_fileinfo.dll"* in my php.ini file?

How to enable Svelte Google Chrome Dev extension