[英]Couldn't Enable Fileinfo Extension through php.ini, still getting './configure' '--disable-fileinfo'
我已经在客户端CPanel中安装了Vtiger CRM。 在上传文件时,我遇到错误{"success":false,"error":{"code":"mime_magic or fileinfo extension required.","message":"mime_magic or fileinfo extension required."}}
因此,根据一些参考,我发现需要在PHP中启用fileinfo extension
。 我创建了一个php.ini
并添加了这一行extension=php_fileinfo.dll
但是当使用phpinfo()
函数时,我仍然会收到这一行。
'./configure' '--disable-fileinfo'
作为Configure Command
行。
在我的Cpanel中,没有change the PHP version
选项。 请给我建议最好的解决方案。
如果您在Cloudlinux上使用Cpanel,则可以通过PHP Selector https://www.cloudlinux.com/php-selector启用fileinfo或mime_magic
另外,如果您有权访问WHM面板,请使用以下链接通过EasyApache安装Fileinfo。 https://www.opensource-excellence.com/blog/item/464-how-to-install-fileinfo-in-whm.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.