源码包
cp oneinstack/src/php-7.2.19.tar.gz /usr/loccal/src
编译安装
./configure \
--prefix=/usr/local/php-7.2 \
--exec-prefix=/usr/local/php-7.2 \
--bindir=/usr/local/php-7.2/bin \
--sbindir=/usr/local/php-7.2/sbin \
--includedir=/usr/local/php-7.2/include \
--libdir=/usr/local/php-7.2/lib/php \
--mandir=/usr/local/php-7.2/php/man \
--enable-zip \
--enable-pdo \
--enable-inline-optimization \
--enable-shared \
--enable-xml \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-mbregex \
--enable-mbstring \
--enable-ftp \
--enable-pcntl \
--enable-sockets \
--enable-fileinfo \
--enable-filter \
--enable-soap \
--enable-session \
--enable-fpm \
--disable-debug \
--disable-rpath \
--with-config-file-path=/usr/local/php-7.2/etc \
--with-mysql-sock=/tmp/mysql.sock \
--with-mhash \
--with-openssl \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-iconv=/usr/local/libiconv
--with-zlib \
--with-xmlrpc \
--with-gettext \
--with-curl \
--with-jpeg-dir \
--with-freetype-dir \
--with-fpm-user=php \
--with-fpm-group=php \
--with-pear=/usr/local/php-7.2/bin
配置文件 ```
php.ini,注意内容修改
cp /usr/local/src/php-7.2.19/php.ini-development /usr/local/php-7.2/etc/php.ini
php-fpm.conf,注意内容修改
把oneinstack中的php-fpm.conf拷贝到php-fpm.conf
cp php-fpm.conf.default php-fpm.conf ```