yum -y install epel-releaseyum -y install oniguruma oniguruma-develyum -y install libxml2 libxml2-develyum -y install openssl openssl-develyum -y install libcurl libcurl-develyum -y install libjpeg libjpeg-devel libpng libpng-develyum -y install freetype freetype-develyum -y install httpdyum -y install httpd-develyum -y install bzip2cd ~tar -jxvf php-7.4.19.tar.bz2cd php-7.4.19.tar.bz2./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7 --with-apxs2=/usr/bin/apxs --enable-sockets --enable-fpm --enable-cli --enable-mbstring --enable-pcntl --enable-soap --enable-opcache --disable-fileinfo --disable-rpath --with-mysqli --with-pdo-mysql --with-iconv-dir --with-openssl --with-fpm-user=www --with-fpm-group=www --with-curl --with-mhash --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-zip --with-zlib --enable-simplexml --with-libxml-dirmake && make install编译安装最新版PHP,支持apache24,支持workman
原文:https://www.cnblogs.com/mflnhg/p/14779225.html