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 mainly shows you "centos 7 how to install php", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "centos 7 how to install php" this article.
Centos7 install php method: 1, install php yum source; 2, through "yum-y remove php*" clean up the old php;3, install php thin extension; 4, set php-fpm boot self-boot.
This article operating environment: centos7 system, PHP7.2 version, DELL G3 computer
How does centos7 install php?
Centos7 install PHP7.2
Suggested 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 the php yum source
# method 1: rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm# method 2: yum install epel-release-yrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Clean up the old php
Yum-y remove php*
View the version of php that can be installed
Yum list php*
Install php thin extension
Yum-y install php72w php72w-cli php72w-fpm php72w-common php72w-devel # can also install deluxe version to extend 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-xml
Php-fpm booting automatically
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 install php in centos 7". 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.
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.