标签搜索

Centos7 下编译安装php8.2

sunshine
2023-04-26 / 0 评论 / 249 阅读

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
感觉很棒,欢迎点赞 OR 打赏~
1
分享到:

评论 (0)

取消
0:00