当前位置:网站首页>How to install PHP in CentOS
How to install PHP in CentOS
2022-07-02 09:26:00 【Yisu cloud】
Centos How to install php
This article mainly introduces “Centos How to install php”, In daily operation , I believe a lot of people are Centos How to install php There are doubts about the problem , Xiao Bian consulted all kinds of materials , Sort out simple and easy-to-use operation methods , I hope to answer ”Centos How to install php” Your doubts help ! Next , Please follow Xiaobian to learn !

install
1. Check whether there is currently an installation php
rpm -qa|grep php
If installed PHP, Please delete these installation packages first :
yum remove php*
2. install php Source
Centos 5 install php Source :
rpm -ivh http://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6 install php Source :
rpm -ivh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7 install php The source and epel Extended source :
rpm -ivh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -ivh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
3. Install now php
install php5.5 Basic installation package for :
yum install php55w php55w-gd php55w-mbstring php55w-mysql php55w-fpm
install php5.6 Basic installation package for :
yum install php56w php56w-gd php56w-mbstring php56w-mysql php56w-fpm
install php7.0 Basic installation package for :
yum install php70w php70w-gd php70w-mbstring php70w-mysql php70w-fpm
installation is complete php Then it needs to be restarted apache:
service httpd restart
4. Test the web
I installed php7.0, take php7.0 Write a web page to test
vim /var/www/html/index.php

Here we are , About “Centos How to install php” That's the end of my study , I hope we can solve your doubts . The combination of theory and practice can better help you learn , Let's try ! If you want to continue to learn more related knowledge , Please continue to pay attention to Yisu cloud website , Xiaobian will continue to strive to bring you more practical articles !
边栏推荐
- Mathematics in machine learning -- point estimation (I): basic knowledge
- MySql报错:unblock with mysqladmin flush-hosts
- DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
- Double non undergraduate students enter the factory, while I am still quietly climbing trees at the bottom (Part 1)
- Difference between redis serialization genericjackson2jsonredisserializer and jackson2jsonredisserializer
- 【Go实战基础】gin 如何自定义和使用一个中间件
- Supplier selection and prequalification of Oracle project management system
- 数构(C语言)——第四章、矩阵的压缩存储(下)
- Micro service practice | introduction and practice of zuul, a micro service gateway
- VIM operation command Encyclopedia
猜你喜欢
微服务实战|负载均衡组件及源码分析
以字节跳动内部 Data Catalog 架构升级为例聊业务系统的性能优化
微服务实战|微服务网关Zuul入门与实战
数构(C语言)——第四章、矩阵的压缩存储(下)
Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
In depth analysis of how the JVM executes Hello World
Mysql默认事务隔离级别及行锁
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
Matplotlib swordsman line - layout guide and multi map implementation (Updated)
MySQL事务
随机推荐
Break the cocoon | one article explains what is the real cloud primordial
Dix ans d'expérience dans le développement de programmeurs vous disent quelles compétences de base vous manquez encore?
JVM指令助记符
oracle删除表空间及用户
洞见云原生|微服务及微服务架构浅析
微服务实战|手把手教你开发负载均衡组件
机器学习实战:《美人鱼》属于爱情片还是动作片?KNN揭晓答案
西瓜书--第六章.支持向量机(SVM)
【Go实战基础】如何安装和使用 gin
Oracle modify database character set
Insight into cloud native | microservices and microservice architecture
长篇总结(代码有注释)数构(C语言)——第四章、串(上)
Don't look for it. All the necessary plug-ins for Chrome browser are here
"Redis source code series" learning and thinking about source code reading
Attributes of classfile
Matplotlib swordsman line - first acquaintance with Matplotlib
Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
Redis sorted set data type API and application scenario analysis
[go practical basis] how to install and use gin
Microservice practice | declarative service invocation openfeign practice