php7.4.5编译安装参数变更

php7.3/7.4开始,很多之前的配置取消或者变更了,比如不支持“–with-gd, –with-mcrypt,  –with-libmbfl,  –with-libxml-dir,  –with-freetype-dir, –with-jpeg-dir, –with-png-dir。 需要根据新的编译说明进行修改。可以参照 ./configure –help查看。

./configure --prefix=/usr/local/php7 \
--with-config-file-path=/usr/local/php7/etc \
--with-config-file-scan-dir=/usr/local/php7/conf.d \
--enable-fpm --with-fpm-user=www --with-fpm-group=www \
--enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \
--enable-cli \
--enable-mbstring \
--enable-gd \
--enable-xml \
--enable-mbregex \
--enable-opcache \
--enable-soap \
--enable-sockets  \
--enable-intl \
--enable-pcntl \
--enable-bcmath \
--enable-shmop \
--enable-ftp \
--enable-inline-optimization \
--enable-sysvsem \
--enable-sysvshm \
--with-openssl \
--with-curl \
--with-zip \
--with-zlib \
--with-xmlrpc \
--with-iconv=/path/to/iconv \
--with-freetype=/path/to/freetype \
--with-jpeg \
--without-pear \
--disable-phar

附:7.4迁移指南

Author: thinkwei

1 thought on “php7.4.5编译安装参数变更

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注