centos安装php5.6


添加源:

    rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

安装php 5.6:

    yum --enablerepo=remi,remi-php56 -y install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt


完成!



你可能感兴趣的:(linux,PHP,centos)