我有 centos 6.5 服务器,当我尝试使用安装 php 扩展时pecl
我收到以下错误:
XML Extension not found
所有文档都说默认包含此扩展...为什么此错误仍然存在?
根据php.net 上的评论 https://secure.php.net/manual/en/dom.setup.php#102046
某些 Linux 发行版的最低 PHP 软件包中不包含此扩展。它通常可以在“可选”php-* 包之一中找到。
对于 CentOS,您需要运行yum install php-xml
,它提供了此扩展。
所以请尝试使用以下方式安装它:
yum install php-xml
Also check your php.ini and make sure that the extension is not commented out with a ;
it should be listed as:
extension=dom.so
为了绝对确定模块是否是enabled你应该使用phpinfo()
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)