How can I install ziparchive on php 7.4?

Puneet Chandhok picture Puneet Chandhok · Feb 6, 2020 · Viewed 14.5k times · Source

I am running Virtuamin on centos 7, I am unable to install ziparchive on php 7.4, but when I switch to php 7.2, it works. I need php 7.4 to work because it is faster and wordpress script need 7.3+ to work effectively.

Answer

Gustavo Morillo picture Gustavo Morillo · May 18, 2020
sudo apt-get install php7.4-zip

This works in ubuntu 18.04