php8.1和php8.2编译安装
1.下载php8.1
2.编译配置参数
./configure --prefix=/home/soft/php-8.1.17 --with-config-file-path=/home/soft/php-8.1.17/etc --enable-fpm --with-fpm-user=php8-fpm --with-fpm-group=php8-fpm --disable-debug --disable-rpath --enable-shared --enable-soap --with-openssl --with-sqlite3 --with-zlib --enable-bcmath --with-iconv --with-bz2 --enable-calendar --with-curl --with-cdb --enable-dom --enable-exif --enable-fileinfo --enable-filter --enable-ftp --enable-gd --with-openssl-dir --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-mbstring --enable-mbregex --enable-pdo --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib-dir --with-pdo-sqlite --with-readline --enable-session --enable-shmop --enable-simplexml --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xsl --with-zip --enable-mysqlnd-compression-support --with-pear --enable-opcache --enable-bcmath --enable-pcntl --with-jpeg --with-freetype
设置启动
cp /home/soft/php-8.1.17/sapi/fpm/init.d.php-fpm /etc/init.d/php81-fpm
sudo chmod 777 /etc/init.d/php81-fpm
评论 (0)