php编译安装

php编译安装

  • 使用以下编译参数
./configure \
--prefix=/usr/local/php \
--build=x86_64-linux-musl \
--enable-fpm \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--with-config-file-path=/usr/local/etc/php \
--with-config-file-scan-dir=/usr/local/etc/php/conf.d \
--enable-option-checking=fatal \
--enable-ftp \
--enable-mbstring \
--enable-mysqlnd \
--with-mhash \
--with-password-argon2 \
--with-sodium=shared \
--with-pdo-sqlite=/usr \
--with-sqlite3=/usr \
--with-curl \
--with-libedit \
--with-openssl \
--with-zlib \
--disable-cgi \
build_alias=x86_64-linux-musl

你可能感兴趣的:(PHP,linux,php,linux)