php-7.3.6 编译安装过程
发布:smiling 来源: PHP粉丝网 添加日期:2022-02-11 12:47:41 浏览: 评论:0
这篇文章主要介绍了php-7.3.6 编译安装过程,本文通过实例文字相结合给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下。
1.、安装编译工具及库文件(使用yum命令安装)
yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp libxml2 libxml2-devel libXpm* libxml* libXaw-devel libXmu-devel libtiff libtiff* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl php-common php-gd policycoreutils telnet t1lib t1lib* nasm nasm* wget zlib-devel
2.安装 libzip 扩展
- wget https://nih.at/libzip/libzip-1.2.0.tar.gz
- tar -zxvf libzip-1.2.0.tar.gz
- cd libzip-1.2.0
- ./configure
- make
- make install
- cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
3. 官网下载-下载3.6
wget http://cn2.php.net/distributions/php-7.3.3.tar.gz
编译安装 扩展
- cd /usr/local/src/
- git clone https://github.com/websupport-sk/pecl-memcache
- cd pecl-memcache/
- /usr/local/php7/bin/phpize
- ./configure --with-php-config=/usr/local/php7/bin/php-config
- make && make install
- yum install libmemcached libmemcached-devel -y
- cd /usr/local/src/
- wget https://pecl.php.net/get/memcached-3.1.3.tgz
- tar -zxvf memcached-3.1.3.tgz
- cd memcached-3.1.3
- /usr/local/php7/bin/phpize
- ./configure --with-php-config=/usr/local/php7/bin/php-config
- make && make install
- cd /usr/local/src/
- wget https://pecl.php.net/get/redis-4.3.0.tgz
- tar -zxvf redis-4.3.0.tgz
- cd redis-4.3.0
- /usr/local/php7/bin/phpize
- ./configure --with-php-config=/usr/local/php7/bin/php-config
- make && make install
安装 mcrypt扩展
- yum install libmcrypt libmcrypt-devel mcrypt mhash -y
- cd /usr/local/src/
- wget http://pecl.php.net/get/mcrypt-1.0.1.tgz
- tar xf mcrypt-1.0.1.tgz
- cd mcrypt-1.0.1
- /usr/local/php7/bin/phpize
- ./configure --with-php-config=/usr/local/php7/bin/php-config && make && make install
在php.ini加上扩展即可
extension=memcache.so
extension=memcached.so
extension=redis.so
extension=mcrypt.so
Tags: php-7.3.6编译安装
- 上一篇:利用PHP内置SERVER开启web服务(本地开发使用)
- 下一篇:最后一页
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)