更新Drupal 到5.0RC2

由 cinbook 于 周五, 2007-01-12 09:41 提交。

// $Id: UPGRADE.txt,v 1.8 2007/01/09 09:16:10 dries Exp $

UPGRADING
---------
更新
---------
1. Backup your database and Drupal directory - especially your
"sites" directory which contains your configuration file and
added modules and themes, any contributed modules in your
"modules" directory, and your "files" directory which contains
uploaded files.

Note: for a single site setup the configuration file is the
"settings.php" file located at sites/default/settings.php.
For multisite configuration the configuration file is located
in a structure like the following:

sites/default/settings.php
sites/example.com/settings.php
sites/sub.example.com/settings.php
sites/sub.example.com.path/settings.php

More information on multisite configuration is located in
the INSTALL.txt file.
1. 备份数据库和Drupal文件夹-特别是包含配置文件,模块和外观主题的“sites”目录,在“modules”目录中的任何起作用的模块,和包含上传文件的“files”目录。
注意:对于单一站点的配置文件是路径为“sites/default/settings.php"的”settings.php”文件。
对于多站点的配置文件路径类似于下面这种结构:
sites/default/settings.php
sites/example.com/settings.php
sites/sub.example.com/settings.php
sites/sub.example.com.path/settings.php
更多的关于多站点的信息可以查看INSTALL.txt文件。

2. Log on as the user with user ID 1. User ID 1 is the first
account created and the main administrator account. User
ID 1 needs to be logged in so that you can access update.php
(step 9) which can only be run by user ID 1. Do not close
your browser until step 10 is complete.
2. 使用用户ID为1的用户登陆。用户ID为1的用户就是创建的第一个用户账户,是主管理员账户。使用这个账户登陆,这样才能访问update.php(第9步)。update.php只能由这个账户运行。第10步完成之前千万不要关闭你的浏览器。

3. Place the site in "Off-line" mode, to mask any errors from
site visitors.
3. 将网站设置为“Off-line”模式,使站点访问者不至于碰到错误。

4. Disable contributed modules and switch to a core theme
(Bluemarine or Garland).
4. 禁用起作用的模块,并切换到基本的外观主题(Bluemarine或Garland)。
5. Remove all of the old files and directories from the Drupal
installation directory.
5. 删除Drupal安装目录中的所有文件和子目录。
6. Unpack the new Drupal files and directories into the Drupal
installation directory.
6. 解压缩新的Drupal文件和目录到Drupal安装目录。
7. Copy the backed up "files" and "sites" directories to the
Drupal installation directory. If the original .htaccess or
robots.txt files have been modified, copy the backed up
versions of these files to the installation directory as
well.
7. 复制备份的“files”和“sites”文件夹
8. Verify the new configuration file to make sure it has the
latest and correct information.

9. Re-install contributed modules.

Note: make sure the version of a module matches your
version of Drupal. Modules from previous versions may
not be compatible with the current version. Check
http://drupal.org/project/Modules for the version of a
module to match your version of Drupal.
9. 重新安装曾经使用的模块。

注意:确保模块的版本适合你的Drupal版本。上一版本的模块可能和现在的版本并不一致。 查看 http://drupal.org/project/Modules以寻找适合你的Drupal的模块版本。
10. Run update.php by visiting http://www.example.com/update.php
(replace www.example.com with your drupal installation's
domain name and path). This step will update the database to
the new Drupal installation.

Note: if you are unable to access update.php do the following:

- Open update.php with a text editor.

- There is a line near top of update.php that says
$access_check = TRUE;. Change it to $access_check = FALSE;.

- As soon as the script is done, you must change the update.php
script back to its original form to $access_check = TRUE;.
10. 访问http://www.example.com/update.php来运行update.php
(将www.example.com替换为你的drupal安装的域名和路径)该步骤将更新数据库到新的Drupal。
注意:如果不能构访问update.php,则如下操作:
-使用文本编辑器打开 update.php
-找到靠近 update.php头部的一行:$access_check = TRUE;. Change it to $access_check = FALSE;。
-脚步运行后,记得改回原来的格式:$access_check = TRUE;。

11. Finally, return site to "Online" mode so your visitors may resume
browsing.
11. 最后,让站点返回到“Online”模式,你的访客就可以浏览了。
For more information on upgrading visit the Drupal handbook at
http://drupal.org/upgrade
更多的更新信息请访问Drupal手册http://drupal.org/upgrade

Thanks! ---------------------

Thanks!

--------------------------------------------------
我的Drupal试验田:http://drupal.verydummy.com
--------------------------------------------------

好东西。收藏先。konw

好东西。收藏先。
konw liver cancer symptom,if so,konw more about liver cancer treatment and liver cancer care to you liver cancer.

谢了。但是任何起作

谢了。但是任何起作用的模块,和包含上传文件的“files”目录。
这个怎么理解啊。
新浪导航:xinlang