Docker not loading any dynamic libraries

I've got a container for a customer tracking service I'm working on, and it needed a custom php.ini for openssl certification to connect to netsuite.

However at the moment I added this ini file, Docker went off and decided it didn't want to have php extensions anymore.

They're all enabled in the ini, for all intents and purposes the ini is the same as it was, only with a new cacert path in it.

However when docker-compose up --build is run, it outputs to the terminal window the following:

    php_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.150.2. Set the 'ServerName' directive globally to suppress this message
php_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.150.2. Set the 'ServerName' directive globally to suppress this message
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/bz2' - /usr/local/lib/php/extensions/bz2: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/curl' - /usr/local/lib/php/extensions/curl: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/ftp' - /usr/local/lib/php/extensions/ftp: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/fileinfo' - /usr/local/lib/php/extensions/fileinfo: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gd' - /usr/local/lib/php/extensions/gd: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/intl' - /usr/local/lib/php/extensions/intl: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/imap' - /usr/local/lib/php/extensions/imap: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mbstring' - /usr/local/lib/php/extensions/mbstring: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli' - /usr/local/lib/php/extensions/mysqli: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/openssl' - /usr/local/lib/php/extensions/openssl: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_mysql' - /usr/local/lib/php/extensions/pdo_mysql: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_sqlite' - /usr/local/lib/php/extensions/pdo_sqlite: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/soap' - /usr/local/lib/php/extensions/soap: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gd.so' - /usr/local/lib/php/extensions/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli.so' - /usr/local/lib/php/extensions/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_mysql.so' - /usr/local/lib/php/extensions/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/zip.so' - /usr/local/lib/php/extensions/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/bz2' - /usr/local/lib/php/extensions/bz2: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/curl' - /usr/local/lib/php/extensions/curl: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/ftp' - /usr/local/lib/php/extensions/ftp: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/fileinfo' - /usr/local/lib/php/extensions/fileinfo: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gd' - /usr/local/lib/php/extensions/gd: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/intl' - /usr/local/lib/php/extensions/intl: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/imap' - /usr/local/lib/php/extensions/imap: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mbstring' - /usr/local/lib/php/extensions/mbstring: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli' - /usr/local/lib/php/extensions/mysqli: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/openssl' - /usr/local/lib/php/extensions/openssl: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_mysql' - /usr/local/lib/php/extensions/pdo_mysql: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_sqlite' - /usr/local/lib/php/extensions/pdo_sqlite: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/soap' - /usr/local/lib/php/extensions/soap: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gd.so' - /usr/local/lib/php/extensions/gd.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli.so' - /usr/local/lib/php/extensions/mysqli.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_mysql.so' - /usr/local/lib/php/extensions/pdo_mysql.so: cannot open shared object file: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
php_1  | <br />
php_1  | <b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/zip.so' - /usr/local/lib/php/extensions/zip.so: cannot op[Fri Jun 11 10:05:25.655788 2021] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.0.33 configured -- resuming normal operations
php_1  | [Fri Jun 11 10:05:25.655869 2021] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND

edit; Dockerfile below

    FROM php:7.0-apache

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
    install-php-extensions curl imap

RUN apt-get update && apt-get install -y \
        libpng-dev \
        zlib1g-dev \
        libxml2-dev \
        libzip-dev \
        libonig-dev \
        zip \
        curl \
        unzip \
        openssl \
    && docker-php-ext-configure gd \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install pdo_mysql \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install zip \
    && docker-php-source delete
RUN a2enmod rewrite headers

I've no idea what has changed, the directory for the extensoions is present, but empty. Any guidance is appreciated.



Read more here: https://stackoverflow.com/questions/67935192/docker-not-loading-any-dynamic-libraries

Content Attribution

This content was originally published by MAWhiteStore at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: