How to Install PHP ext-zip extension?

Symptoms

Typical error message, meaning that PHP ext-zip extension is missing:

laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Fix me

First, get PHP version running on your computer:

php --version

Then, on Ubuntu, just run this command:

# For php v7.0
sudo apt-get install php7.0-zip
 
# For php v7.1
sudo apt-get install php7.1-zip
 
# For php v7.2
sudo apt-get install php7.2-zip

On CentOs:

yum install php-pecl-zip

Done! Hope it helps!

Similar Posts

  • 404 Not Found, but route exist in Laravel

    Please Make you have Apache configured with the following information in /path/to/apache2/installation/conf/httpd.conf Add the following information <Directory “path/to/laravel/project/public”> Allowoverride All </Directory> .htaccess file located in public folder make sure that it has the following <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> Options +FollowSymlinks RewriteEngine On # Redirect Trailing Slashes… RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle…