hoellen / dockerfiles

Dockerfiles
https://hub.docker.com/u/hoellen
Creative Commons Zero v1.0 Universal
36 stars 17 forks source link

PHP module zip not installed. #17

Closed waja closed 5 years ago

waja commented 5 years ago

The actual image seems to miss the PHP zip module:

nextcloud_1                            | PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so (Error loading shared library libzip.so.5: No such file or directory (needed by /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so)), /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (Error loading shared library /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so: No such file or directory)) in Unknown on line 0
nextcloud_1                            | PHP module zip not installed.
nextcloud_1                            | Please ask your server administrator to install the module.
nextcloud_1                            |
nextcloud_1                            | An unhandled exception has been thrown:
nextcloud_1                            | Exception: Environment not properly prepared. in /nextcloud/lib/private/Console/Application.php:166
nextcloud_1                            | Stack trace:
nextcloud_1                            | #0 /nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud_1                            | #1 /nextcloud/occ(11): require_once('/nextcloud/cons...')
nextcloud_1                            | PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so (Error loading shared library libzip.so.5: No such file or directory (needed by /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so)), /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (Error loading shared library /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so: No such file or directory)) in Unknown on line 0
nextcloud_1                            | [25-Dec-2018 17:11:31] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so (Error loading shared library libzip.so.5: No such file or directory (needed by /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so)), /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (Error loading shared library /usr/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so: No such file or directory)) in Unknown on line 0
nextcloud_1                            | #2 {main}PHP module zip not installed.
nextcloud_1                            | Please ask your server administrator to install the module.
tbrasser commented 5 years ago

Having the same issue. Is zip.so available for php 7.3?

waja commented 5 years ago

Still present with image 364420ad47dc. 0d2c24a661e2a7902d6714149d7f65718e129755 seems not to fix it.

tbrasser commented 5 years ago

I now use the daily image. Which works for now (NC15), but that one misses imagick (but that's not critical).

hoellen commented 5 years ago

@waja I already tried to enable libzip-dev on the nginx-php image earlier today. But with no success. I rolled back to php 7.2 for nextcloud 15, so it can be used again and I will look into it after the christmas days.

@tbrasser I have now imagick enabled for nextcloud daily. Images are in the build process now.

waja commented 5 years ago

@waja I already tried to enable libzip-dev on the nginx-php image earlier today. But with no success. I rolled back to php 7.2 for nextcloud 15, so it can be used again and I will look into it after the christmas days.

Maybe I find time on 35c3 to investigate further. Will keep you updated. Even it might be a good idea to switch daily first to PHP 7.3.

waja commented 5 years ago

@hoellen I pushed a fix for the nginx-php image. zip.so needs libzip.so.5 at runtime provided by the libzip. See #19.

hoellen commented 5 years ago

Thanks for your PR. Images are up now.