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 the server upgrades php7.4

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

Share

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

This article will explain in detail how to upgrade php7.4 on the server. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Unloading

Because I installed php7.1 from repo in webtatic/x86_64, I have the word php71w and execute the following statement:

Yum remove php71w php71w* mod_php71w

Webtatic feeds are limited to version 7.2 of php. Remove webtatic feeds and use remi feeds

Yum install yum-utilsyum-y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmyum-y install http://rpms.remirepo.net/enterprise/remi-release-7.rpmyum-config-manager-- disable webtatic/x86_64yum-config-manager-- enable remi-php74 installation yum updateyum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-opcache

Please check whether the output can see the word php7.4, otherwise you will not switch to the source of remi-php74.

Restore configuration

After the upgrade, yum will back up the original configuration as * .rpmsave. There are mainly two files that can be restored as needed.

/ etc/php.ini.rpmsave/etc/php-fpm.d/www.rpmsave

Note:

The owner of the upgraded / var/lib/php directory will be changed to apache,php-fpm 's session,opcache files in this directory by default. Permission is required. If your php-fpm is not run by apache users, please modify it with chown-R.

This is the end of the article on "how to upgrade the php7.4 server". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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: 285

*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