YULLIN's Blog - Tag centos6

install php5.6 on centos6

本次安装系统环境为Centos6 x86_64

# cd /usr/local/src
# wget http://cn2.php.net/distributions/php-5.6.39.tar.gz
# tar xzf php-5.6.39.tar.xz

安装依赖包

# yum install gcc gcc-c++ bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel

开始编译安装(这里先别急着去执行,先往文章后面看看)

# ./configure \
--prefix=/usr/local/php …

Read More