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:
Prestashop 1.5 - How to enable add to cart button at Home Featured Product?
How to insert new line (line break) in a cell - OpenOffice Calc
MySQL: How to add column to existing table
How to install apache, php, mysql with macport in Mac OS X
N900: How to connect Wifi protected setup compliant Network
How to setup mysqldump without password in cronjob
Rip DVD Movies with Handbrake
How to downgrade to PHP 5.2 using MacPort
Share this with your friends:-