Home  >  Article  >  Operation and Maintenance  >  How to install php on centos6.5 yum

How to install php on centos6.5 yum

藏色散人
藏色散人Original
2020-08-20 09:27:532226browse

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.

How to install php on centos6.5 yum

##centos6.5 yum installation php method

Recommended: "

centos tutorial"

The version of linux is centos6.5 64-bit

Find the existing version

yum list installed | grep php

If there is an existing php version, execute the following command to delete

yum -y remove php-common

This 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.rpm

Use 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-common

Get 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn