【问题标题】:Couldn't Enable Fileinfo Extension through php.ini, still getting './configure' '--disable-fileinfo'无法通过 php.ini 启用 Fileinfo 扩展,仍然得到 './configure' '--disable-fileinfo'
【发布时间】:2018-01-03 07:01:30
【问题描述】:

我已经在我的客户端 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 的选项。 请建议我最好的解决方案..

【问题讨论】:

    标签: php cpanel fileinfo vtigercrm


    【解决方案1】:

    如果您在 Cloudlinux 上使用 Cpanel,您可以通过 PHP 选择器启用 fileinfo 或 mime_magic https://www.cloudlinux.com/php-selector

    此外,如果您有权访问 WHM 面板,请使用以下链接通过 EasyApache 安装 Fileinfo。 https://www.opensource-excellence.com/blog/item/464-how-to-install-fileinfo-in-whm.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-05
      • 2012-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多