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 tutorials for installing php5, uninstalling php, and installing php7

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

Share

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

It is easy to install php5 first

Yum install php

Then if you don't want to use php5, uninstall it. Note that using the yum remove command alone won't work.

Then let's go first.

Yum remove php

And then you need

Rpm-qa | grep php

To see what are the dependencies (packages) of php and its installation, and then uninstall them one by one

For example,

Then uninstall one by one with the following command

Rpm-e

For example,

Then let's install php7 and its common use

Update the yum source first

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

Then simply install php7

Yum install php70w

This tutorial may have different centos6 sources for centos7 systems, and other sources are required.

But why not use docker?

Summary

The above is the tutorial of installing php5, uninstalling php and installing php7 in centos introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

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