PHP 5.6
PHP 5只能用openssl 1.0, curl使用7.70.0,freetype 2.6.5
./configure --prefix=/usr/local/php/5.6 \
--enable-fpm \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--with-gd \
--enable-gd-jis-conv \
--enable-mbstring \
--with-pdo-mysql \
--with-pdo-pgsql \
--enable-sockets \
--enable-opcache \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-xpm-dir \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl=/usr/local/openssl-1.0
make -j 6
sudo make install
/usr/local/php/5.6/bin/php -m
PHP 7.4
./configure \
--prefix=/usr/local/php/7.4 \
--enable-fpm \
--with-fpm-user=ning \
--with-fpm-group=ning \
--with-pdo-mysql \
--with-pdo-pgsql \
--with-iconv-dir \
--with-freetype \
--with-jpeg \
--with-zlib \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-intl \
--enable-ftp \
--enable-gd \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--with-gettext \
--disable-fileinfo \
--enable-opcache \
--with-sodium \
--with-webp
make -j 6
sudo make install
/usr/local/php/7.4/bin/php -m
PHP 8.1
configure \
--prefix=/usr/local/php/8.1 \
--enable-fpm \
--with-fpm-user=ning \
--with-fpm-group=ning \
--with-pdo-mysql \
--with-pdo-pgsql \
--with-freetype \
--with-jpeg \
--with-zlib \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-intl \
--enable-ftp \
--enable-gd \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--enable-soap \
--with-gettext \
--disable-fileinfo \
--enable-opcache \
--with-sodium \
--with-webp
make -j 6
sudo make install
/usr/local/php/8.1/bin/php -m