当前位置:网站首页>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 !
边栏推荐
- What are the waiting methods of selenium
- Matplotlib剑客行——布局指南与多图实现(更新)
- Redis installation and deployment (windows/linux)
- Matplotlib swordsman - a stylist who can draw without tools and code
- 【Go实战基础】gin 如何获取 GET 和 POST 的请求参数
- MySql报错:unblock with mysqladmin flush-hosts
- JVM指令助记符
- Chrome user script manager tempermonkey monkey
- Bold prediction: it will become the core player of 5g
- Microservice practice | Eureka registration center and cluster construction
猜你喜欢

Redis 序列化 GenericJackson2JsonRedisSerializer和Jackson2JsonRedisSerializer的区别

There is a problem with MySQL installation (the service already exists)

微服务实战|熔断器Hystrix初体验

Customize redis connection pool

MySQL multi column in operation

Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue

Matplotlib swordsman line - first acquaintance with Matplotlib

MySQL事务

概率还不会的快看过来《统计学习方法》——第四章、朴素贝叶斯法

《统计学习方法》——第五章、决策树模型与学习(上)
随机推荐
Thinkphp5 how to determine whether a table exists
From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
[go practical basis] how to install and use gin
Don't look for it. All the necessary plug-ins for Chrome browser are here
[go practical basis] how to bind and use URL parameters in gin
Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
Microservice practice | teach you to develop load balancing components hand in hand
西瓜书--第五章.神经网络
我服了,MySQL表500W行,居然有人不做分区?
Attributes of classfile
Talk about the secret of high performance of message queue -- zero copy technology
自定义Redis连接池
互联网API接口幂等设计
知识点很细(代码有注释)数构(C语言)——第三章、栈和队列
Flink - use the streaming batch API to count the number of words
Methods of classfile
Machine learning practice: is Mermaid a love movie or an action movie? KNN announces the answer
Learn combinelatest through a practical example
Chrome视频下载插件–Video Downloader for Chrome
Who is better for Beijing software development? How to find someone to develop system software