下载
https://www.php.net/downloads
configure
./configure --prefix=/usr/local/php/7.4.4 \
--with-config-file-path=/usr/local/php/7.4.4/etc \
--with-config-file-scan-dir=/usr/local/php/7.4.4/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
本文详细介绍了如何从源码下载并安装 PHP 7.4.4,包括配置 FPM、MySQL 支持、各种扩展及模块,如 GD、CURL、MBString 等,确保 PHP 在服务器上稳定高效运行。

6389

被折叠的 条评论
为什么被折叠?



