时间:2021-07-01 10:21:17 帮助过:117人阅读
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
加入
PATH=$PATH:
/usr/local/php/bin
export
PATH
7,执行source /etc/profile
相关推荐:
CentOS安装PHP5.6实例
以上就是centos7手动安装PHP5.6.33详解的详细内容,更多请关注Gxl网其它相关文章!