阿里云服务器centos6.3进行php升级(从5.3.3 -> 5.5.8)
2014-09-01 00:00
357 查看
背景:
准备使用laravel框架(http://laravel.com),但是阿里云服务器上的php版本为 5.5.3,laravel的系统要求是 php版本 > 5.3.7.
问题:
使用 yum update-check,结果 当前 centos上的源的php版本还是5.5.3,所以决定换个源;
步骤:
1、参考:http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x,找到源,
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
然后查看源:
$ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo
2、配置
sudo vim /etc/yum.repos.d/remi.repo
设置 enabled 选项都是 1
3、安装
yum –enablerepo=remi update php* mysql*
4、done
准备使用laravel框架(http://laravel.com),但是阿里云服务器上的php版本为 5.5.3,laravel的系统要求是 php版本 > 5.3.7.
问题:
使用 yum update-check,结果 当前 centos上的源的php版本还是5.5.3,所以决定换个源;
步骤:
1、参考:http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x,找到源,
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
然后查看源:
$ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo
2、配置
sudo vim /etc/yum.repos.d/remi.repo
设置 enabled 选项都是 1
3、安装
yum –enablerepo=remi update php* mysql*
4、done
相关文章推荐
- 阿里云服务器centos6.3进行php升级(从5.3.3 -> 5.5.8)
- 阿里云Centos 6.3 64位 安全加固版 升级 Php 中的 Curl 7.19 到 7.35
- 阿里云服务器下安装LAMP环境(CentOS Linux 6.3) 安装与配置 php
- 阿里云服务器下安装LAMP环境(CentOS Linux 6.3)(1)
- 阿里云CentOS 6.3 64位下搭建php运行环境
- 阿里云服务器下配置LAMP环境——基于CentOS 6.3
- 【PHP升级】CentOS6.3编译安装 PHP5.4.38
- 基于阿里云centOS服务器,LAMP环境搭建(linux+apache+mysql+php)
- 阿里云服务器下安装LAMP环境(CentOS Linux 6.3)
- CentOS服务器单独升级 php5.1 到 5.2版本
- centos php 升级到php5.3.3
- 阿里云服务器下安装配置phpMyAdmin——基于CentOS 6.3
- 在阿里云 CentOS服务器上搭建nginx+mysql+php环境
- 在阿里云 centos 6.3上面安装php5.2
- linux svn搭建(阿里云服务器 CentOS 6.3 64位)
- Centos5.6 简单方法升级php到php5.3.3
- CentOS 6.4 简单方法升级PHP到PHP 5.3.3
- 阿里云CentOS 6.3 64位 配置PHP环境
- 对服务器进行php的版本升级
- 在阿里云 CentOS 服务器(ECS)上搭建 nginx + mysql + php-fpm 环境