PHP XML Extension: Not installed

Solution 1:

You're close

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

sudo service apache2 restart

Solution 2:

Had the same problem running PHP 7.2. I had to do the following :

sudo apt-get install php7.2-xml

Solution 3:

I solved this issue with commands bellow:

$ sudo apt-get install php7.3-intl

$ sudo /etc/init.d/php7.3-fpm restart

These commands works for me in homestead with php7.3

Solution 4:

In Centos

 sudo yum install php-xml

and restart apache

sudo service httpd restart