Home > Article > Operation and Maintenance > How to install php on centos6.5 yum
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 phpIf there is an existing php version, execute the following command to delete
yum -y remove php-commonThis is a centos6 system, so add the yum source of CentOS 6.x
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.rpmUse yum Install PHP, install version 5.6 as remi-php56, install version 5.5 as remi-php55
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-commonGet the installed php version through the php -v command, the current version for php5.6.x
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!