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?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With