php-xml uninstallable on CentOS

November 10, 2013 3.4k views
WordPress Import Pluging is causing WordPress white screen of death. WordPress debugger gives me following error. Fatal error: Class 'DOMDocument' not found in /var/www/wordpress/wp-content/plugins/wordpress-importer/parsers.php on line 61 It can be fixed by installing php-xml as reported in this thread I get following errors when I install php-xml sudo yum install php-xml [sudo] password for donnie: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: * epel: * extras: * updates: Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-xml.i686 0:5.3.3-23.el6_4 will be installed --> Processing Dependency: php-common(x86-32) = 5.3.3-23.el6_4 for package: php-xml-5.3.3-23.el6_4.i686 --> Finished Dependency Resolution Error: Package: php-xml-5.3.3-23.el6_4.i686 (updates) Requires: php-common(x86-32) = 5.3.3-23.el6_4 Installed: php-common-5.4.21-2.el6.remi.i686 (@remi) php-common(x86-32) = 5.4.21-2.el6.remi Available: php-common-5.3.3-22.el6.i686 (base) php-common(x86-32) = 5.3.3-22.el6 Available: php-common-5.3.3-23.el6_4.i686 (updates) php-common(x86-32) = 5.3.3-23.el6_4 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
3 Answers
I meant to say php-xml is not installable.
Try running this command instead:

yum --enablerepo remi install php-xml
Thanks Nasser. I went nuclear as it was a new droplet and I have not used rpm based distros, I reinstalled with php-xml before anything. It worked.
Have another answer? Share your knowledge.