In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to install the php7 extension in yum. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Yum install php7 extension: 1, install epel and REMI source; 2, view the PHP version that can be installed and use the "yum-y install php" command to install PHP;3, and install the PHP extension through the "yum-y install php-fpm" command.
This article operating environment: centos7 system, PHP7.4 version, Dell G3 computer.
Centos7 yum installation PHP7 and PHP extension installation:
1. Install epel:#yum list installed | grep php# to check the installed PHP, and uninstall # yum repolist all after rpm-e is found | grep phpyum install epel-release-y2. Install the REMI source: rpm-ivh https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm
3. Check the version of PHP that can be installed: yum repolist all | grep php
4. Set the default installed version: yum
5. Install PHP:yum-y install php# to view the PHP version php-v# to view the installed module php-M6. See which PHP extensions can be installed: yum search php74-php
7. Install PHP extension: example: install php74-php-fpm extension, then execute: (without php74-) yum-y install php-fpm
8.php-fpm command: # start systemctl start php-fpm# stop systemctl stop php-fpm# restart systemctl restart php-fmp# reload systemctl reload php-fpm# set boot start systemctl enable php-fpm# disable boot start systemctl disable php-pfm
This is the end of this article on "how to install php7 extensions for yum". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it out 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: 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.