简体   繁体   English

启用fileinfo扩展

[英]Enable fileinfo extension

It's on a Centos 7, PHP 5.5.38 它位于Centos 7,PHP 5.5.38

I thought the fileinfo was enabled by default, but phpinfo() shows below: 我认为默认情况下启用了fileinfo,但是phpinfo()显示如下:

'./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? 那么如何启用此fileinfo?

The current extension folder doesn't have fileinfo.so, so I don't know what I need to do now to enable this. 当前的扩展文件夹没有fileinfo.so,所以我不知道现在需要做什么才能启用它。

This solved my problem, using WHM/Cpanel recompile Apache and PHP 这解决了我的问题,使用WHM / Cpanel重新编译Apache和PHP

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM