本文主要和大家分享centos7手动安装PHP5.6.33详解,希望能帮助到大家。
1,PHP官网下载php-5.6.33.tar.bz2
2,解压到/usr/local/下
3,进入目录执行:./configure
遇到错误:checking libxml2 install dir… no
checking for xml2-config path…
configure: error: xml2-config not found. Please check your libxml2 installation.
解决方法:yum install libxml2-devel
4, ./configure
5, make&&make install
6, 设置环境变量vim /etc/profile
加入
来&源gao@dai!ma.com搞$代^码%网
搞gaodaima代码PATH=$PATH:
/usr/local/php/bin
export
PATH
7,执行source /etc/profile
相关推荐:
CentOS安装PHP5.6实例
以上就是centos7手动安装PHP5.6.33详解的详细内容,更多请关注搞代码gaodaima其它相关文章!