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 i get “unable to load library”. How i get php-zip an php-xml? thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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


Regards, KDSys