升級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

發佈了23 篇原創文章 · 獲贊 1 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章