2015-04-21 36 views
0

我正在使用php版本为5.4.33的godaddy VPS。 现在我想在ini文件中启用php_fileinfo扩展名,以避免在我的php脚本中出现错误 Fatal error: Class 'finfo' not found。 为了让我做了以下内容:php_fileinfo在php.ini文件中未启用

1. open WebHost Manager. 
2. Go to Service Configuration 
3. Go to PHP Configuration Editor 
4. search extension directive and fill as `fileinfo.so` in the input box and save 
5. restart all services. 

6. create a file in the server with the code <?php echo phpinfo();?>. but in that I am not finding any `fileinfo` status. It indicates still it is not enabled. 

能否请你帮我这是为什么不还配置了吗? 在此先感谢。

回答

0

你可以做到这一点与EasyApache:

在PHP版本选择页面,请选择5.3版或以上,如FileInfo的可供版本5.3.X或以上版本。

然后,选择详尽的选项列表 enter image description here

如果你不知道什么EasyApache,你可以阅读文档:https://documentation.cpanel.net/display/EA/EasyApache

+0

然后只需要保存或我必须建立个人资料 – Srim

+0

建造轮廓,但要小心;) 我建议您以yaml格式下载配置文件,编辑它,然后导入它以构建并制作您自己的配置文件并在将来重新使用它 – Avara

+0

您可以在此处找到更多信息:https:/ /documentation.cpanel.net/display/EA/PHP+Module:+Fileinfo – Avara