Trying to migrate a symfony system to a new server. It show me “PHP Fatal error: Class ‘DOMDocument’ not found in…” when i click on some link. After some checking, the problem actually caused by a missing module – php xml module. Install the module will solve the problem 🙂
To solve “PHP Fatal error: Class ‘DOMDocument’ not found in”, follow the steps below:-
Advertisements
- You must ssh to your system using root
- Now install the xml module in php using yum (yum is only available in selected linux distribution eg: CentOS, RedHat, Fedora, etc)
yum install php-xml
just press ‘Y’ to install the dependencies module.
- Once the installation finish, you need to restart your apache and the error message “Class ‘DOMDocument’ not found” will go away!
service httpd restart
Related posts:
Contact Form 7: Clear all field except specific after submission
jQuery: disable autoscrolling to top when click on anchor
Bootstrap 3: Responsive image align center
How to hide apache2 version number in error page
Turn on MySQL query cache to speed up query performance?
How to sync Google Calendar with Thunderbird
How to install Fedora to USB drive
Speed Up and Save Your Website Bandwidth with GZip Compression
Share this with your friends:-