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:
MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysq...
How to print screen in Asus Zenfone 6
Symfony doctrine schema relationship sample
How to enable personal file sharing in Ubuntu 10.04
How to clear play history in VLC media player
OpenOffice Calc worksheet tab went missing
How to svn thru ssh in Linux / Mac
Symfony2: How to get Doctrine Entity Manager in Console command
Share this with your friends:-