Home > Article > Backend Development > What should I do if php domdocument cannot be found?
Solution for php domdocument not found: 1. Execute the "sudo apt-get install php-dom" command; 2. Execute the "yum install php-xml" command.
The operating environment of this article: ubuntu 16.04 system, php5.3 version, DELL G3 computer
Specific questions:
php - Class 'DOMDocument' not found
I am getting an error on the page of my Magento application; when I access it it always shows this message error:
Fatal error: Class 'DOMDocument' not found in /home/.../lib/Zend/Feed/Abstract.php on line 95
Can you give me a solution? I'm using magento 1.4.1.1.
Solution:
You need to install the DOM extension. You can do this on Debian/Ubuntu using the following command:
sudo apt-get install php-dom
On Centos/Fedora/Red Hat:
yum install php-xml
If you find a conflict between PHP packages, you can Try to see if a specific PHP version package exists: php53-xml (if your system is running PHP5.3).
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if php domdocument cannot be found?. For more information, please follow other related articles on the PHP Chinese website!