Reputation: 615
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?
Upvotes: 3
Views: 9581
Reputation: 7068
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
Upvotes: 3
Reputation: 863
You just need to install each xml extension: php7-xml
, php7-xmlreader
and php7-xmlwriter
Here is an example
apk add --update --no-cache \
php7 \
... HERE ARE OTHER EXTENSIONS ...
php7-xmlwriter \
php7-xmlreader
Upvotes: 1
Reputation: 615
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.
Upvotes: 2