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:
Debian: "There is no public key available for the following key IDs"
WordPress: How to open rss links in new window?
How to check if directory exists in Bash script
How to shrink worksheet for printing in Calc - OpenOffice
How to install SVN 1.6 on CentOS 5
How to import contacts from Mac to Nokia N900
How to clear play history in VLC media player
How to extract img tag attributes using PHP?
Share this with your friends:-