DOMDocument not working

A

Anonymous

Guest
I installed apache, php, and mariadb on Ubuntu 20.04 LTS via the following commands:

sudo apt update
sudo apt install apache2
sudo apt install php
sudo apt install mariadb-server

For some reason DOMDocument doesn't work within php, which I figured would probably happen because I hadn't installed any php modules. However, phpInfo says libxml is installed. Any ideas what is going on here? Ultimately I'm trying to learn how to create and install production grade websites.


Thanks in advance! :D
 
Ok I guess libxml was not installed by default on apache2 on Ubuntu 20. Someone posted a note on the php website. Corrected it with the following:

sudo apt install php-xml


Cheers! :)
 
Back
Top