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
上一篇 WordPress及WooCommerce安装
下一篇 CentOS 7下安装MySQL 8
目录
文章列表
1 Logstash grok配置调试
Logstash grok配置调试
2
Android拦截并获取WebView内部POST请求参数
Android拦截并获取WebView内部POST请求参数
3
Leaf - 美团的分布式唯一ID方案深入剖析
Leaf - 美团的分布式唯一ID方案深入剖析
4
高等数学基础:方向导数的计算与梯度
高等数学基础:方向导数的计算与梯度
5
Spring Boot获取参数的几种方式
Spring Boot获取参数的几种方式
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。