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:-
- 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
WordPress Dev: How to send html email using wp_mail()?
CPAN Error: make test had returned bad status, won't install without force
How to import mysql innodb with foreign key constraint error?
How to upload file in Symfony 1.4
How to check if directory exists in Bash script
Symfony: How to query using Criteria OR
WordPress: How to upload image using script?
WordPress: How to create left sidebar template in TwentyEleven theme?
Share this with your friends:-