XML Extension not found

谁说我不能喝 提交于 2020-01-03 08:55:53

问题


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?


回答1:


According to a comment on php.net

Certain Linux distributions do not have this extension included in the minimum PHP package. It can usually be found in one of the "optional" php-* packages.

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 php.ini and make sure that the extension is not commented out with a ; it should be listed as:

extension=dom.so 

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



来源:https://stackoverflow.com/questions/21859128/xml-extension-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!