当前位置:网站首页>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 !
边栏推荐
- Microservice practice | Eureka registration center and cluster construction
- CKEditor 4.10.1 上传图片提示“不正确的服务器响应” 问题解决
- 洞见云原生|微服务及微服务架构浅析
- Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
- 京东面试官问:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
- 十年開發經驗的程序員告訴你,你還缺少哪些核心競爭力?
- [go practical basis] how to verify request parameters in gin
- Hystrix implements request consolidation
- In depth analysis of how the JVM executes Hello World
- Bold prediction: it will become the core player of 5g
猜你喜欢

Chrome浏览器插件-Fatkun安装和介绍

【Go实战基础】如何安装和使用 gin

MySQL事务

以字节跳动内部 Data Catalog 架构升级为例聊业务系统的性能优化

Microservice practice | load balancing component and source code analysis

西瓜书--第五章.神经网络

【Go实战基础】gin 如何验证请求参数

Troubleshooting and handling of an online problem caused by redis zadd

Solution to amq4036 error in remote connection to IBM MQ
![[go practical basis] how to bind and use URL parameters in gin](/img/63/84717b0da3a55d7fda9d57c8da2463.png)
[go practical basis] how to bind and use URL parameters in gin
随机推荐
Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
Hystrix implements request consolidation
Thinkphp5 how to determine whether a table exists
Chrome browser plug-in fatkun installation and introduction
CKEditor 4.10.1 上传图片提示“不正确的服务器响应” 问题解决
分布式锁的这三种实现方式,如何在效率和正确性之间选择?
Bold prediction: it will become the core player of 5g
数构(C语言--代码有注释)——第二章、线性表(更新版)
Pool de connexion redis personnalisé
MySQL事务
Microservice practice | declarative service invocation openfeign practice
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
Microservice practice | fuse hytrix initial experience
Supplier selection and prequalification of Oracle project management system
How to use pyqt5 to make a sensitive word detection tool
How to choose between efficiency and correctness of these three implementation methods of distributed locks?
[go practical basis] how to verify request parameters in gin
一篇详解带你再次重现《统计学习方法》——第二章、感知机模型
Chrome浏览器标签管理插件–OneTab
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)