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

How to install php using yum

Release: 2023-02-28 19:26:01
Original
4673 people have browsed it

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

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

3. Install php71-fpm

sudo yum install php71w-fpm.x86_64
Copy after login

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!

Related labels:
php
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