Trying to install moodle on a fresh Debian 10, moodle 3.8 with php 7.3 , I get this issue:
--
The Zip PHP extension is now required by Moodle, info-ZIP binaries or PclZip library are not used anymore
--
I put all the technical info here:
I'm using docker, my dockerfile is available here: https://github.com/juanda99/moodle-docker-compose/blob/master/moodle/Dockerfile
I install all the extensions using official php 7.3 image based on Debian like this:
--
docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ --with-freetype-dir=/usr/include/
My php configuration with a warning:
----
root@moodle:/var/www/html# php --ini
PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/zip.so (libzip.so.4: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/etc/php/conf.d
Additional .ini files parsed: /usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
/usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
/usr/local/etc/php/conf.d/docker-php-ext-soap.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/docker-php-ext-xmlrpc.ini,
/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
/usr/local/etc/php/conf.d/opcache-recommended.ini,
/usr/local/etc/php/conf.d/uploads.ini
---
Zip extension configuration:
---
root@moodle:/var/www/html# cat /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
extension=zip.so
---
zip.so file is located in:
root@moodle:/var/www/html# find / -name "zip.so"
/usr/local/lib/php/extensions/no-debug-non-zts-20180731/zip.so