本文介绍了找不到XML扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有centos 6.5服务器,当我尝试使用pecl安装php扩展名时,出现以下错误:

I have centos 6.5 server and when I try to install php extension using pecl I get the following error:

XML Extension not found

所有文档都说默认情况下包括此扩展名...为​​什么此错误仍然存​​在?

All the documentations say that this extension is included by default... Why this error still exists?

推荐答案

根据对php.net的评论

对于CentOS,您将需要运行提供此扩展程序的yum install php-xml.

For CentOS, you will need to run yum install php-xml, which provides this extension.

因此,请尝试使用以下命令进行安装:

So please try to install it using:

yum install php-xml

还要检查您的并确保扩展名未用;注释掉,应将其列为:

Also check your and make sure that the extension is not commented out with a ; it should be listed as:

extension=dom.so 

为了绝对确定是否已启用模块 ,您应使用phpinfo()

In order to be absolutely sure whether or not a module is enabled you should use phpinfo()

这篇关于找不到XML扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 04:57