wget http://cn2.php.net/distributi...php
mkdir /usr/local/php7.3mysql
tar php-7.3.0.tar.gzsql
cd php-7.3.0apache
./configure --enable-fpm --prefix=/usr/local/php7.3 --with-config-file-path=/usr/local/php7.3/etc --with-apxs2=/usr/local/apache/bin/apxs --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --with-openssl --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-zipvim
make && make installphp7
ln -s /usr/local/php7.3/bin/php /usr/local/bin/phpcurl
cp /usr/local/php7.3/etc/php-fpm.conf.default /usr/local/php7.3/etc/php-fpm.confsocket
cp /usr/local/php7.3/etc/php-fpm.d/www.conf.default /usr/local/php7.3/etc/php-fpm.d/www.confphp-fpm
vim /usr/local/php7.3/etc/php-fpm.d/www.conf 將user和group設置成apacheurl
cp php.ini-development /usr/local/php7.3/etc/php.ini