Friday, May 6, 2011

How to Upgrade From Drupal 6 to Drupal 7

By Miki Pavlov


Now long ago there was an upgrade of the Drupal core from Drupal 6.20 to Drupal 7. Before upgrading your site there are some instructions that you should read so you don't mess up the upgrade process. The update process is very easy and will automatically update or remove any functionality from Drupal 6.20 to 7 and update content to use new features when possible. But before starting the upgrade be sure to completely backup your site's file and database. If you are using MySQL the you can backup your database using phpmyadmin. Be very careful with contributed modules because they may interrupt the upgrade process.

1. The very first thing that you should do is to backup all of your files. On your host server put your files in a archive and download the archive file to your computer. Be Very careful to save "sites" folder from the root folder because in that folder are stored custom modules, templates and configuration files. It's smart to do one copy of your entire site and one copy of "sites" folder.

2. The next thing is to backup your database. If you are using MySQL then you can backup you database using phpmyadmin. If you don't like phpmyadmin then you can use the "Backup and Migrate Module" or you can backup your site's database by connecting to MySQL via SSH(Secure Shell) and typing "mysqldump --opt -u user -p dbname > path/backup.sql" .

3. When you are installing Drupal your site should be in maintenance mode. Go to "http://yoursite.com/admin/settings/site-maintenance" and put your site in offline mode. When the site is in maintenance mode no one can access the site but the administrator. This way nobody can mess up your installation.

4. After you are done with step 4, disable any old contributed templates and modules because they may interfere with the update process. When all of the modules and themes are disabled the default theme for your site should be Garland. After that, remove all of the files of contributed modules and templates from Drupal's directory.

5. After you are finished with step 4 download and unpack Drupal 7 to the root directory of the site. Copy the files from your old "sites" folder to the new directory that was been crated. Be sure that you have copied settings.php so you don't have any troubles with the installation. Open the file and check that all of the information is correct. You don't need to copy old templates from your previous site to the new directory.

6. The update process will start when you visit http://www.yoursite.com/update.php. After the page have been loaded, you will see a warning message to backup your files and database. Click continue and and in the next page you will see the updates that will be made during the update process. Select apply and the upgrade process will start. Be sure not to interrupt the upgrade process or refresh the page while the installation is in progress. After the installation have completed you will be presented a log message displaying all of the changes that have been made with this upgrade.




About the Author:



No comments:

Post a Comment