刚刚对公司的服务器进行php的版本升级,没出问题,从5.2升级到5.6,并且安装yaf框架,把步骤贴出来分享一下,具体操作配置如下:
###下载remi包
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
###安装remi包
rpm -ivh remi-release-7.rpm
rpm -ivh epel-release-7-5.noarch.rpm
rpm -qa|grep remi-release
rpm -qa|grep epel-release
###使用Remi repo
vim /etc/yum.repos.d/remi.repo
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
立即学习“PHP免费学习笔记(深入)”;
#把enabled设为1.使之起作用。 注意:如果想吧PHP5.4升级为PHP5.5,则把[remi-php55]的enabled设置为1
###停止相关服务
systemctl stop nginx
ps -ef|grep nginx
systemctl stop php-fpm
ps -ef|grep php-fpm
追梦A系列(11.0版本,以下11.0均简称为A)是针对企业网站定制设计的,模板采用全新AS3.0代码编辑,拥有更快的运行和加载速度,A系列模板主要针对图片展示,拥有简洁大气展示效果,并且可以自由扩展图片分类,同时还拥有三个独立页面介绍栏目,一个新闻栏目,一个服务介绍栏目,一个幻灯片展示和flv视频播放栏目。A系列模板对一些加载效果进行了修改,包括背景的拉伸模式以及标题的展示方式等都进行了调整,同
0
###更新
yum update -y
yum update php
#这个时候会提醒更新php到5.6 通过以下命令查看是否完成升级
###检查版本
php -v
###然后启动服务
systemctl start nginx
systemctl start php-fpm
####安装yaf框架:
wget https://pecl.php.net/get/yaf-2.3.5.tgz
tar zxvf yaf-2.3.5.tgz
cd yaf-2.3.5/
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make
make install
###检查
php -m
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号