Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install XMLReader module extension ubuntu

Im working with a plugin that requires XMLReader, and XMLWriter PHP modules to be installed. So I need to activate the DOMDocument, XMLReader, and XMLWriter PHP modules.

So far i have tried : sudo apt install php-xmlwriter

apparently is installed but the message still is displayed. Am i missing something else? another module?

like image 814
Alejo_Blue Avatar asked Nov 26 '25 10:11

Alejo_Blue


2 Answers

For PHP 7.4 There is no php7-xmlreader or php7-xmlwriter package shown using apt-list. Only php7.4-xml and php7.4-xmlrpc - installing these/restarting apache and running php -m shows that xml support (including reader/writer) is enabled.

sudo apt-get update && apt list php7*
sudo apt install -y php7.4-xml php7.4-xmlrpc
sudo service apache2 restart
php -m
like image 66
Peter Kionga-Kamau Avatar answered Nov 29 '25 01:11

Peter Kionga-Kamau


I finally came to a simple answer for this. Just needed to install the following: sudo apt install php7.3-xml and this included both modules needed.

like image 34
Alejo_Blue Avatar answered Nov 29 '25 01:11

Alejo_Blue



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!