php7——Linux/Mac源码安装php7

下载源码包

https://www.php.net/downloads

php-7.4.27.tar.gz

解压,并进入目录

./configure --prefix=/usr/local/php/7.4.27 \
--with-config-file-path=/usr/local/php/7.4.27/etc \
--with-config-file-scan-dir=/usr/local/php/7.4.27/etc/conf.d \
--enable-fpm \
--with-fpm-user=flybeta \
--with-fpm-group=admin \
--with-mysqli \
--with-pdo-mysql \
--with-iconv-dir=/usr/local \
--enable-short-tags \
--with-freetype \
--with-zlib \
--with-jpeg \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-ftp \
--enable-gd
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--with-zip \
--enable-soap \
--without-pear \
--disable-fileinfo \
--enable-maintainer-zts \
--enable-mysqlnd

make
make install

上一篇:pywebio编写前端页面


下一篇:PHP7时代下的ZVAL以及垃圾回收gc的改变