How to enable ZipArchive on PHP 7.4

Written by James McDonald

March 30, 2020

yum install php-zip
# restart Apache or php-fpm

This is on CentOS Linux release 7.7.1908 (Core)

You will know you have it installed properly when you run the following code and it returns true

// enter this in a file such as phpzip.php
php phpzip.php

On CentOS using the remi-php74 repository it add a 40-zip.ini file into /etc/php.d/ with the contents of

; Enable ZIP extension module


Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...


Just downloaded WizTree (not a sponsor) from It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...