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

CentOS 7 implements yum to install the latest php version

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

Share

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

Demand:

We usually install a lot of software need to rely on the la/nmp architecture, which is the only php after the use of yum installation default is 5.4.16 version (5.6 version below), not the latest version, resulting in a lot of software can not be used!

Solution:

Experimental steps: first, uninstall the php5.x version (if installed) 1. View the system php version number

two。 Uninstall the php5.x version

Yum remove php*-y

3. Check the uninstall

Update the yum source

Rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

3. Yum installs php7.x series (x stands for php7 series, here is an example)

Yum install php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel

4. Check the php version number

Php-v

Summary:

1. Refer to https://www.cnblogs.com/yanqingxu/p/9248849.html for this article

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

Servers

Wechat

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

12
Report