cdeely Posted June 17, 2022 Report Share Posted June 17, 2022 Hi all, I am new to Revive and trying to spin up an instance on a Docker Compose setup. I am leveraging an official PHP (FPM) image (php:7-fpm-alpine) with a great many extensions already configured. When running the Revive installation wizard, the system check fails complaining of missing extensions: zip, mysqli or pgsql. zip and pgsql may in fact not be enabled, but mysqli is directly listed in the output from `php -m`. Is there a reason it is not detected? I am not super well versed with PHP configuration, so I could be missing something obvious here ~ php -m [PHP Modules] // truncated list to show relevant parts mbstring mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite ~ php -i // again, truncated mysqli MysqlI Support => enabled Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ Active Persistent Links => 0 Inactive Persistent Links => 0 Active Links => 0 Directive => Local Value => Master Value mysqli.allow_local_infile => Off => Off mysqli.allow_persistent => On => On mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => /var/mysql/mysql.sock => /var/mysql/mysql.sock mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.max_persistent => Unlimited => Unlimited mysqli.reconnect => Off => Off mysqli.rollback_on_cached_plink => Off => Off mysqlnd mysqlnd => enabled Version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ Compression => supported core SSL => supported extended SSL => supported Command buffer size => 4096 Read buffer size => 32768 Read timeout => 86400 Collecting statistics => Yes Collecting memory statistics => No Tracing => n/a Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password API Extensions => pdo_mysql,mysqli PDO PDO support => enabled PDO drivers => mysql, sqlite pdo_mysql PDO Driver for MySQL => enabled Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ Directive => Local Value => Master Value pdo_mysql.default_socket => /var/mysql/mysql.sock => /var/mysql/mysql.sock pdo_sqlite PDO Driver for SQLite 3.x => enabled SQLite Library => 3.28.0 Quote Link to comment Share on other sites More sharing options...
cdeely Posted October 3, 2022 Author Report Share Posted October 3, 2022 I managed to get a Docker image properly configured with support for Revive. Here's my Dockerfile for anyone else who runs into this: FROM php:7.4-fpm #install some base extensions RUN apt-get update && apt-get install -y \ libzip-dev \ sendmail \ zip \ && docker-php-ext-install zip \ && docker-php-ext-install mysqli # Install dependencies for GD and install GD with support for jpeg, png webp and freetype # Info about installing GD in PHP https://www.php.net/manual/en/image.installation.php RUN apt-get install -y \ libfreetype-dev \ libjpeg-dev \ libpng-dev \ libwebp-dev # As of PHP 7.4 we don't need to add --with-png RUN docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype RUN docker-php-ext-install gd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.