Home >Backend Development >PHP Problem >How to install php using yum

How to install php using yum

尚
Original
2020-04-25 11:45:274682browse

How to install php using yum

How to install php using yum:

1. Add php’s yum software repository

sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

2. Install php related software during execution Select yes for all

sudo yum install php71w.x86_64 php71w-cli.x86_64 php71w-common.x86_64 php71w-gd.x86_64 php71w-ldap.x86_64 php71w-mbstring.x86_64 php71w-mcrypt.x86_64 php71w-mysql.x86_64 php71w-pdo.x86_64

3. Install php71-fpm

sudo yum install php71w-fpm.x86_64

Wait for the installation to complete and enter php -version to view the php version.

For more related knowledge, please pay attention to PHP Chinese website! !

The above is the detailed content of How to install php using 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
Previous article:How to hide php versionNext article:How to hide php version