The requested PHP extension dom is missing from your system

For me the selected answer didn't work.

This did work:

sudo apt-get install php-xml

This was on Ubuntu 16.04 with PHP 7.


use sudo apt-get install php7.2-xml if you are using ubuntu and php-fpm7.2


Try

sudo apt-get install php7.0-common

I am using Ubuntu 17.10 and PHP 7.1 is running well using:

sudo apt-get install php7.1-xml

and then (if using apache)

sudo service apache2 restart

or if on nginx you can use this:

sudo service nginx restart