Sunday, May 29, 2011

管理員常用 Path

0. 網站下線 Off-line
Home › Administer › Site configuration › Site Maintenance › Off-line › Save Configuration

1. 啟動或者關閉某些模組 (Enable/Disable modules)
Home › Administer › Site building › Modules › check/uncheck the target modules › Save Configuration

2. Off-line 模式下登入的 url
   http://sitexxx.com/drupaldir?q=user/ 

3. 升級(Upgrade)/更新(Update)

[Upgrade.txt的步驟摘要]
  • Back up "files" and "sites" directories
  • Do not close your browser until the final step is complete.
  • Place the site in "Off-line" mode
  • Switch to a core theme, such as Garland or Bluemarine.
  • Disable all custom and contributed modules.
  • Remove all old files and directories from the Drupal installation directory.
  • Unpack the new files and directories into the Drupal installation directory.
  • Copy the backed up "files" and "sites" directories to the Drupal
        installation directory. 
  • Verify the new configuration file
    e.g. sites/default/settings.php
         sites/example.com/settings.php
  • Run update.php by
    http://sitexxx.com/drupaldir/update.php

Saturday, May 28, 2011

administrator 忘記密碼怎麼辦?

[Q] administrator 忘記密碼怎麼辦?

[try]
0. 使用drupal site 的 email notification
(登入失敗後 一般都會有 forgot your password 的連結)

1. 直接更改mysql資料庫中的 'users' table
UPDATE `users` SET pass = MD5('newpwd') WHERE uid=1;
(需要記得資料庫的管理員密碼)



[ref]
http://drupal.org/node/44164