Alpine安装php各种扩展
#!/bin/sh sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories apk add --no-cache autoconf g++ libtool make curl-dev libxml2-dev linux-headers echo "--------
#!/bin/sh sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories apk add --no-cache autoconf g++ libtool make curl-dev libxml2-dev linux-headers echo "--------
1.修改php.ini文件,加上extension=imagick.so;2.重启php:service php-fpm restart;3.重启时有的会出现报错:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
原文链接:https://www.jianshu.com/p/20fcca06e27e# PHP 容器配置 # 从官方基础版本构建 FROM php:7.2-fpm # 官方版本默认安装扩展: # Core, ctype, curl # date, dom # fileinfo, filter, ftp # hash # iconv # json # libxml # mbstring, my
apt install libgd2-xpm-dev* RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ RUN docker-php-ext-install -j$(nproc) gd