---
title: Upgrade Drupal 6 to Drupal 7
url: https://sammy.hk/upgrade-site-drupal-7-d6/
author: Sammy Fung
published: 2012-02-18T14:44:44+08:00
modified: 2018-03-21T22:27:42+08:00
description: "I just upgraded a drupal 6 website to drupal 7 successfully after few upgrade failure. Preparion before upgrade &#8211; disable all non-core (required/optional)…"
categories: ["開放源碼"]
source: https://sammy.hk
---
I just upgraded a drupal 6 website to drupal 7 successfully after few upgrade failure.

**Preparion before upgrade**
– disable all non-core (required/optional) modules.
– switch back the default theme to garland.
– backup the database to sql file.

**Migrate and upgrade**
– rsync to drupal 7
– change value of $update\_free\_access to TRUE in settings.php, and change the file all writable.
– goto the /install.php of your drupal site at web browser to upgrade.

**Reset the overlay “Toolbar” at drupal 7**
1\. Backup the database to sql file.
2\. DELETE FROM menu\_links WHERE module = ‘system’
3\. Then you need to visit /admin/config/development/performance and clear the cache.

### 相關文章：

1. [Linux Forum Asia 2005 之後感](https://sammy.hk/linux-forum-asia-2005-%e4%b9%8b%e5%be%8c%e6%84%9f/ "Linux Forum Asia 2005 之後感")
2. [重新安裝 Serendipity](https://sammy.hk/reinstall-serendipity/ "重新安裝 Serendipity")
3. [近期喜歡上搞 Web Application](https://sammy.hk/interests-to-code-webapp/ "近期喜歡上搞 Web Application")
4. [久違在家中電腦上進行編譯](https://sammy.hk/%e4%b9%85%e9%81%95%e5%9c%a8%e5%ae%b6%e4%b8%ad%e9%9b%bb%e8%85%a6%e4%b8%8a%e9%80%b2%e8%a1%8c%e7%b7%a8%e8%ad%af/ "久違在家中電腦上進行編譯")
