How to install php on centos6.5 yum

藏色散人
Release: 2020-08-20 09:27:53
Original
2221 people have browsed it

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
Copy after login

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

yum -y remove php-common
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template