Report this

What is the reason for this report?

how install or enabled php-zip and php-xml

Posted on October 23, 2019

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.



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.