You need to install the DOM extension. You can do so on Debian / Ubuntu using:
sudo apt-get install php5-dom
If you get conflicts between PHP 5 and PHP 5.3 packages, you could try to see if the php53-xml package exists instead.
Note Please check PHP version before your installation. If you are using PHP7 then follow this tutorial.
and finally restart your apache.