Centos6.5 yum installation method of php: First, use the "yum list installed | grep php" command to find the existing PHP version; then add the yum source of CentOS6.x; finally use the "yum install" command to install PHP will do.
##centos6.5 yum installation php method
Recommended: "centos tutorial"
The version of linux is centos6.5 64-bit Find the existing versionyum list installed | grep php
yum -y remove php-common
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
yum install -y --enablerepo=remi,remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
The above is the detailed content of How to install php on centos6.5 yum. For more information, please follow other related articles on the PHP Chinese website!