Php: PHP Zip Archive Enabled Fail

Created on 20 Nov 2014  路  2Comments  路  Source: docker-library/php

I have wordpress with this php docker and runing into this issue:
PHP Version [5.6.3] Pass
Zip Archive Enabled Fail

Could anyone please show me how to enable zip support in this php container? docker-php-ext-install zip saying that I need to install zlib1g-dev but that package is not found within this debian build (apt-get install zlib1g-dev).
Thanks

Most helpful comment

If this is your own WordPress image, just add these lines to your Dockerfile:

RUN apt-get update \
    && apt-get install -y zlib1g-dev \
    && rm -rf /var/lib/apt/lists/* \
    && docker-php-ext-install zip 

All 2 comments

If this is your own WordPress image, just add these lines to your Dockerfile:

RUN apt-get update \
    && apt-get install -y zlib1g-dev \
    && rm -rf /var/lib/apt/lists/* \
    && docker-php-ext-install zip 

Thanks, I just forgot having double "&" and that cause E: Unable to locate package zlib1g-dev.

Was this page helpful?
0 / 5 - 0 ratings