PHP error: "The zip extension and unzip command are both missing, skipping."



PHP Snippet 1:

(sudo) yum install zip unzip php-zip
(sudo) apt install zip unzip php-zip

PHP Snippet 2:

sudo apt-get install zip unzip php5.6-zip

PHP Snippet 3:

FROM php:7.4-apache

# Install Composer
COPY --from=composer /usr/bin/composer /usr/bin/composer

# Install unzip utility and libs needed by zip PHP extension 
RUN apt-get update && apt-get install -y \
    zlib1g-dev \
    libzip-dev \
    unzip
RUN docker-php-ext-install zip

PHP Snippet 4:

apt-get install --yes zip unzip php-pclzip

PHP Snippet 5:

sudo apt-get install zip unzip php7.0-zip

PHP Snippet 6:

RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "zip"]
RUN ["apt-get", "install", "-y", "unzip"]

PHP Snippet 7:

sudo apt-get update
sudo apt-get install zip unzip php7.2-zip

PHP Snippet 8:

RUN set -eux \
   && apt-get update \
   && apt-get install -y libzip-dev zlib1g-dev \
   && docker-php-ext-install zip

PHP Snippet 9:

sudo apt-get install zip unzip php7.4-zip

PHP Snippet 10:

sudo apt-get install zip unzip php8.0-zip

PHP Snippet 11:

sudo apt install php-zip