webdevask.com

Menu

  • Home
  • New
  • Add question

The Zip PHP extension is not installed. Please install it and try again. Laravel

View Original

I am trying to run:

laravel new test

However, I am getting this error:

enter image description here

I am on PHP 7.4.7 and Laravel 2.3.0 and ubunti 16.04

I ran this during the installation of PHP:

sudo apt-get install -y php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip} if this helps on what I have tried.

I am a beginner with Laravel and PHP, so please be gentle and clear with your explanations, thanks.

Thanks.

Answer

Solution:

I faced the same problem. Use this command:

php -v

To check php version(for me it was 7.4.9) .Then:

sudo apt-get install php7.4-zip

It will solve your problem.

Please see this answer for more. RuntimeException The Zip PHP extension is not installed

Source

See also:

  • php สร้าง Google ชีตจากบัญชีบริการ

  • php - Laravel 8.0 Installation Failed

  • javascript - How to include HTML data (tags) as value in "arrayToDataTable" of Google Pie Chart?

  • how to Grouping array in php

  • php - vender folder from my laravel project has more 1k error

© 2021
E-mail: contact@webdevask.com
Back to top