升级drupal 核心(drupal 6/7)

之这前用drupal 7.22核心做了一个网站,前几天再次打开的时候提示说There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates.

 

意即:你当前版本的drupal有一个安全更新。为保证你的服务器安全,你应该马上更新。更多信息和安装更新请查看“可用更新”。

 

点过几个连接跳转到drupal.org上的"Update Drupal Core"页面上,翻译在此方便查阅:

 

Update Drupal Core

更新Drupal核心

Last updated May 5, 2013. Created by chiragjain on March 22, 2012.
最后更新。。。。。。。

Edited by ssiruguri, talvi, shamio, laura s. Log in to edit this page.

编辑。。。。。。

For the most complete documentation for upgrading an existing Drupal site, see http://drupal.org/upgrade.

升级一个现存Drupal站点的完整文档请见http://drupal.org/upgrade.

Instructions on how to update Drupal core with a newer version of Drupal of the same category or same base version [ ie Drupal 6/7/8]

如何使用同一个类别或同一个基版本的新版本升级Drupal 核心的说明

1.Make a backup of your Drupal instance. (For ex: with MySQL)

1,备份你的Drupal实例。(比如连同MySQL一起)

2.Download the latest release of your current Drupal version.
2,下载你当前Drupal版本的最近发行版

3.Extract the [tar ball or zip] Drupal package.

3,解压Drupal包[tar包或zip]

4.Set your site on maintenance mode (For ex: How on D7)
4,设置你的站点为维护模式

5.Delete all the files & folders inside your original Drupal instance except for /sites folder and any custom files you added elsewhere.
5,删除你的原始Drupal站点实例里,除“/sites”目录和其他任何地方你自行添加的文件之外的,所有文件和目录。

6.Copy all the folders and files except /sites from inside the extracted Drupal package [tar ball or zip package] into your original Drupal instance.
6,从刚才解压的Drupal包里[tar或zip包]拷贝除"/sites"目录之外的所有目录和文件到你的原始Drupal实例。

7.If the update release includes changes to settings.php replace old settings.php in .../sites/default/ with the new one, and edit site-specific entries (eg database name, user, and password)

7,如果更新版本里的settings.php里有更改,用这个新文件替换"../sites/default"目录下的旧文件,并编辑与本站点定义相关的地方(比如数据库名称,用户名,密码)
8.If you modified files such as .htaccess or robots.txt re-apply those changes to the new files.

8,如果你有修改过.htaccess或robot.txt,同样去修改这些新的文件。
9.Login to your site as administrator or as user no 1

9,以administrator或用户编号1登录你的站点。
10.Run update.php by navigating to http://...yourdrupalsitename/update.php
10,在浏览器运行"http://你的站点/update.php"执行更新。

11.Follow the process to update your Drupal instance

11,跟随处理流程更新你的Drupal实例
12.Disable maintenance mode

12,最后再关闭维护模式

 

下面还有很多讨论请看

英文原文地址:https://drupal.org/node/1494290

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值