linux 部署出现Fatal error: Class 'DOMDocument' not found。

今天用PHP解析xml时出现如下错误:php Fatal error:  Class 'DOMDocument' not found。

环境:CentOS 5.6; PHP 5.3.5

解决方法:

#yum -y install php-dom

#apachectl restart  或者 service httpd restart

原文地址:https://www.cnblogs.com/orangegem/p/7137416.html