帮助中心
打造个性化行业解决方案,为您提供一站式的产品与服务
Centos7.2系统安装Apache2.4+PHP5.6+Mysql5.6
更新时间:2021-12-06

1 安装和更新各个yum源

 安装epel yum源  yum -y install epel-release 

 安装remi yum源  rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

 安装mysql yum源

wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

rpm -ivh mysql-community-release-el6-5.noarch.rpm

清除yum缓存并重新构建缓存

yum clean all&yum makecache

2  安装并配置httpd  php  mysql php-fpm

yum list命令查看是否有对应的包并安装

yum list | grep httpd

yum install –y httpd

systemctl start httpd.service

systemctl enable httpd.service

3.查看mysql版本并安装

yum list | grep mysql


yum –y install mysql-community-client 

mysql-community-server

systemctl start mysqld

systemctl enable mysqld  

4. 查看remi的php版本并安装

 yum  list --enablerepo=remi --enablerepo=remi-php56 | grep php


5. 安装PHP5.6

yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhpr

6.  安装php-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm  

systemctl start php-fpm

systemctl enable php-fpm

7. 修改网站与php-fpm结合,以下面网站为例


8. 使用探针测试

测试完成


如果您有其他问题,可以联系知木科技 阿里云代理商,为您提供一对一专业全面的技术服务,快速响应疑难问题。
我公司为阿里云代理商/腾讯云代理商/华为云代理商,通过我司采购阿里云,新老用户均可享受代金券和折扣优惠,欢迎咨询!



咨询我们,即可享受多款产品免费体验
  • 专属服务 1对1客户经理式服务
  • 上云规划 基于阿里云的专业上云架构规划
  • 售前支持 完整的售前咨询与云资源采购服务售后服务
  • 售后服务 一站式运维支持,快速响应疑难问题
服务热线: 13213015111(7x24h)
联系邮箱: 34379344@qq.com
扫一扫立即咨询
扫一扫立即咨询

Copyright © 2013-2021 All Rights Reserved. 知木科技 版权所有 豫ICP备19044862号-1 增值电信业务经营许可证:豫B2-20211161 在线数据处理与交易许可证:豫B2-20211161