CentOS下PHP 7.4 快速安装

https://www.php.net/downloads.php

# yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4
# yum install openssl openssl-devel python-devel libxml2 libxml2-devel zlib-devel pcre-devel libcurl-devel libjpeg-devel libpng-devel libpng12-devel freetype-devel mhash-devel libmcrypt-devel libXpm-devel libedit-devel re2c libxslt libxslt-devel libicu-devel

# yum install sqlite-devel
# yum install oniguruma-devel
# ./configure --prefix=/data/server/php7 --with-config-file-path=/data/server/php7/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-zip= --with-pdo_sqlite --with-gettext --with-iconv --enable-ftp --with-sqlite3 --enable-xml --enable-mbstring --enable-sockets --enable-soap --enable-fileinfo --enable-exif --enable-bcmath --with-readline --with-libedit --with-openssl --with-zlib --with-curl --enable-gd --with-jpeg --with-png --with-freetype --with-libxml --with-xpm --with-mcrypt --with-mhash --enable-mysqlnd --enable-pdo --with-mysqli --with-pdo-mysql --without-pear --with-libdir=lib64 --with-mysql-sock --enable-opcache --enable-intl --with-xsl --disable-cgi

configure: WARNING: unrecognized options: --with-png, --with-mcrypt

# make
# make install
# cd /data/server/php7/etc/
# cp php-fpm.conf.default php-fpm.conf
# cp php-fpm.d/www.conf.default php-fpm.d/www.conf
# ln -s /data/server/php7/bin/* /usr/bin/
# ln -s /data/server/php7/sbin/* /usr/bin/
# php -v

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/12/centos-install-php-74/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
CentOS下PHP 7.4 快速安装
https://www.php.net/downloads.php # yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4 # yum install openssl openssl-devel pyth……
<<上一篇
下一篇>>
文章目录
关闭
目 录