MediaWiki Upgrade error PHP Fatal error: Class ‘DOMDocument’ not found

When upgrading MediaWiki on WebHostingNeeds.com, i got following error

...doing rev_id from 4801 to 5000
...doing rev_id from 5001 to 5200
PHP Fatal error:  Class 'DOMDocument' not found in /home/webhost/public_html/includes/cache/LocalisationCache.php on line 650
Fatal error: Class 'DOMDocument' not found in /home/webhost/public_html/includes/cache/LocalisationCache.php on line 650
[root@server70 maintenance]#

This is fixed by installing php-domxml module and restarting apache.

yum install -y php-domxml-php4-php5
service httpd restart

Posted in PHP