Question

how install or enabled php-zip and php-xml

i have my droplet with ubuntu 18.10 and php 5.6. I need install php-zip and php-xml, when i run apt-get install php-zip or apt-get install php-xml, i get “php-zip is already installed” but php -m dont show. If enable extension=zip.so i get “unable to load library”. How i get php-zip an php-xml? thanks.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @arcano162a0753f8ba1074e549,

You can install the php extensions like the following

sudo apt-get install php5.6-zip php5.6-xml

In fact you can install any PHP extension using the command above.

Please make sure you’ve ran

sudo apt-get update
sudo apt-get upgrade

Beforehand.

Regards, KDSys