How to install a specified version of php through yum

王林
Release: 2023-03-04 16:32:01
Original
2845 people have browsed it

How to install the specified version of php through yum: first execute the [yum -y install epel-release] command to install the source; then execute the [yum-config-manager --enable remi-php71] command to install the specified version php can be used.

How to install a specified version of php through yum

Specific method:

(Recommended tutorial: php graphic tutorial)

1. Install source

Install epel-release:

yum -y install epel-release
Copy after login

Add remi source:

rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Copy after login

Install yum-config-manager utility:

yum -y install yum-utils
Copy after login

(Video tutorial Recommended tutorial: php video tutorial)

2. Install PHP

Install PHP7.1:

yum-config-manager --enable remi-php71
Copy after login
yum -y install php php-opcache
Copy after login

After completion, you need to add common PHP extensions:

yum -y install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel
Copy after login
rrree

The above is the detailed content of How to install a specified version of php through 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!