Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How centos7 reinstalls php7.2

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to reinstall centos7 php7.2, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Centos7 reinstall php7.2 methods: 1, through the "yum-y remove php*" to clean up the old php;2, view the php version that can be installed; 3, install php compact extension; 4, set php-fpm boot self-boot.

This article operating environment: centos7 system, PHP7.2 version, DELL G3 computer

Centos7 install PHP7.2

Recommended method # install EPEL yum repository yum install epel-release-y # install Remi repository rpm-Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # install PHP 7.3yum-enablerepo=remi-php73 install php # install PHP 7.2yum-enablerepo=remi-php72 install php # install PHP 7.1yum-enablerepo=remi-php71 install php install php yum source # method 1: rpm-Uvh https://dl.fedoraproject Method 2: yum install epel-release- yrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm cleans up the old phpyum-y remove php* to see which version of php can be installed, yum list php* installs php, simplifies the extension yum-y install php72w php72w-cli php72w-fpm php72w-common php72w-, and pub/epel/epel-release-latest-7.noarch.rpmrpm-Uvh method 2. Devel # can also install deluxe extension yum-y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xmlphp-fpm boot self-starting systemctl enable php-fpm

This installation method may result in different php versions displayed by the yum info php and php-v commands

The above is all the contents of the article "how to reinstall php7.2 in centos7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report