如何使用plesk从5.1.6升级到5.2,我需要进行此升级以构建我的应用程序欢呼声?
答案 0 :(得分:1)
来自this post:
为了将Linux服务器上的PHP 5升级到最新版本,请执行以下步骤。
适用于:
下载更新Yum存储库的安装程序脚本:
[root@server ~]# wget http://78.129.170.254/cpinstall/atomic
--2009-11-12 15:40:22-- http://78.129.170.254/cpinstall/atomic
Connecting to 78.129.170.254:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8918 (8.7K) [text/plain]
Saving to: `atomic'
100%[=====================================>] 8,918 35.7K/s in 0.2s
2009-11-12 15:40:22 (35.7 KB/s) - `atomic' saved [8918/8918]
使用以下命令执行此下载的脚本:
[root@server ~]# sh atomic
Atomic Archive installer, version 1.1
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-10.el5.art.noarch.rpm: OK
Would you like to add the Plesk yum repository to the system?
Enable Plesk repository? (y/n) [Default: n]: y
Plesk 8.6 and 9.2 repositories are available:
NOTE: Plesk 9 repos are only available for rhel/centos 4 and 5
Enable Plesk 8.6 or 9.2? (8/9) [Default: 8]: 9
The Atomic Rocket Turtle archive has now been installed and configured for your system.
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages.
atomic-testing - [DISABLED] - contains the testing tree of ART packages.
atomic-bleeding - [DISABLED] - contains the development tree of ART packages.
现在运行yum upgrade php
将PHP升级到最新版本:
[root@server ~]# yum upgrade php
PHP升级过程将开始&将在接下来的5分钟内完成。
最后执行这3个命令以重新启动Web服务&接受新的PHP:
[root@server ~]# /etc/init.d/psa stopall
[root@server ~]# /etc/init.d/psa startall
[root@server ~]# /etc/init.d/psa restart
现在使用php -v命令检查新安装的PHP版本。