From 4d804760cd7d07d7438c289c96da0dfdd1dfa2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Tue, 11 Apr 2023 21:55:05 +0200 Subject: [PATCH] Enable imagick in php8 --- Dockerfile | 2 +- build_php8.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3992fd9..d8ace8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ libpng-dev libpng-dev build-essential git mercurial build-essential \ libbz2-dev libsqlite3-dev libreadline-dev zlib1g-dev libncurses5-dev \ libgdbm-dev libgd-dev cron git subversion vim nano mc htop procps \ dropbear gettext wget redis-server memcached supervisor curl ssh \ -mariadb-client postgresql-client-13 postgresql-13-postgis-3-scripts bind9-host dnsutils nginx \ +mariadb-client postgresql-client-13 postgresql-13-postgis-3-scripts bind9-host dnsutils nginx nginx-extras libnginx-mod-http-image-filter \ libxml2-dev libxslt1-dev openssh-sftp-server links2 lynx \ imagemagick libmagick++-6.q16-dev libmagick++-6.q16hdri-dev libmagickwand-dev ncdu libsodium-dev \ python3 python3-pip python3-virtualenv \ diff --git a/build_php8.sh b/build_php8.sh index 4b1a0ae..8a738a9 100755 --- a/build_php8.sh +++ b/build_php8.sh @@ -76,7 +76,7 @@ echo "extension=redis.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini echo "extension=mongodb.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini # Not supported yet # https://github.com/Imagick/imagick/issues/358 -# echo "no" | /opt/techs/php-$VERSION/bin/pecl install imagick -# echo "extension=imagick.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini +echo "no" | /opt/techs/php-$VERSION/bin/pecl install imagick +echo "extension=imagick.so" >> /opt/techs/php-$VERSION/etc/conf.d/extensions.ini ln -s /srv/conf/php-fpm/php.ini /opt/techs/php-$VERSION/etc/conf.d/99-app.ini