编译、安装
make && make install
7.2
安装依赖
7.2删除了mcrypt,所以把libmcrypt和libmcrypt-devel也去掉了。
yum -y install libxml2 libxml2-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype-devel openssl openssl-devel
解压缩
tar zxf php-7.2.30.tar.gz -C /usr/local/src/
cd /usr/local/src/php-7.2.30/
配置、编译、安装
./configure \
--prefix=/usr/local/php72 \
--with-config-file-path=/usr/local/php72/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-iconv-dir \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-ftp \
--with-gd \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--without-pear \
--with-gettext \
--enable-fileinfo \
--enable-maintainer-zts
编译、安装
make && make install