misterunknown / ifm

Improved File Manager
MIT License
341 stars 70 forks source link

ZipArchive Class Not Found #182

Closed Aphrodites1995 closed 1 year ago

Aphrodites1995 commented 1 year ago

When you try do download a folder, the download fails and the logs say that ZipArchive class not found. I solved this problem by installing the php extensions through docker-php-ext-install:


RUN apk add --no-cache \
    bzip2-dev \
    libzip-dev \
    libcap-dev \
    libbz2 \
    libzip \
    libcap \
    openldap-dev \
    php8-bz2 \
    php8-fileinfo \
    php8-ldap \
    php8-posix \
    php8-zip \
    sudo

RUN docker-php-ext-install \
    bz2 \
    fileinfo \
    ldap \
    posix \
    zip

# allow php binary to bind ports <1000, even if $USER != root
RUN /usr/sbin/setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php```
misterunknown commented 1 year ago

You are right, the way the necessary extensions were installed was wrong. Fixed that in the latest commit.