Archive for June, 2011

How to upgrade Drupal 7 to Drupal 7.2

Introduction:

Upgrading a working Drupal installation could be a hair raising experience. I am going to narrate a fool proof way of upgrading your Drupal 7 installation to the current version 7.2.

Methods available for upgradation:

1. Via the fantastico program in your c panel. This could be easy and could work out for certain minor upgrades. Let me warn you it is the most unreliable method to perform an upgrade.

2. Manual upgrade is the most efficient and reliable option. I am going to describe the manual method of upgrading drupal 7 to drupal 7.2. This type of upgrade is considered to by a minor one as it contains only certain important security patches and bug fixes.

Step one:

Backup!!!!!!!!!
The most important step. You need to back up your entire drupal installation (to be rock safe) and the entire data base.

How to back up the entire drupal site?

For this you need to have a FTP client. Filezilla is a free and very useful ftp client.

You can download Filezilla from here.

After download is complete install it.

*you have separate versions for windows and linux

Choose the correct version for your operating system. Install the ftp client.
Key in your FTP address, user name and password. You can leave the port empty no problem the client will do it for you. After logging into your website server migrate to the folder in which your drupal installation is installed. If it is the root folder you need to back up the entire public html folder. If it has been installed in a subdomain then the installation folder should be completely backed up.

After backing up your Drupal installation using FTP client like Filezilla the data base needs to be backed up. It is in the database that the articles are stored.

How to back up your drupal database?

In order to backup the database you can make use of the Backup / Migrate module which is available in drupal 7. You can download this module from here. You need to have installed and enabled this module. If you have not done it is high time you do it now. For backing up the drupal database you need to log into your Drupal site using your administrator account.
1. Click the configuration button which could be seen on top of the page
2. Click on the menu Backup and migrate
3. In the next page specify the download location (from your local computer) Usually the default backup folder would be download.
4. Choose back up. Now you will see a dump of the drupal 7 database in your local computer. This database backup can be restored at anytime when you need it just by going again to the backup / migrate module and clicking the restore button.

1 by drtbalu
1, a photo by drtbalu on Flickr.

2 by drtbalu
2, a photo by drtbalu on Flickr.

Downloading Drupal 7.2:

You can download the current version from here.

If you are using microsoft windows then choose the .zip version of the file.
If you are using linux operating system then choose .tar version of the file.
These are nothing but varying zip formats.

Unzipping the downloaded Drupal 7.2 installation:

Now is the time to unpack the goodies. Right click on the file and unzip the files to your convenient location. Usually Desktop is the most obvious location. Don’t think I need to explain the unzipping process in detail. I assume the reader would be fully conversant with unzipping procedure.

Uploading unzipped files to the webserver:

These unzipped files should be uploaded to your webserver using the FTP client. Preferably Filezilla.
These files should go into the same folder where the earlier version of Drupal is installed. Upload
all the files except the following ones:

1. .htaccess

2. Sites (this is a folder)

3. robots. txt

It is important not to copy these files to your webserver.

Now is the time for real action. Log in to your Drupal 7 site using Administrator username and password.

Click on the modlules link. In the modules page disable all the non core modules.

3 by drtbalu
3, a photo by drtbalu on Flickr.

You should make a careful note of all modules (non core) which you are disabling because you need to re enable them after the upgrade is over. Don’t log out of the site. Keep the logged in browser window. Minimize that window if necessary.

Open a new tab in your browser and type the url of your site. “wwww.example.com” replace example with the exact name of your site. Now key in www.example.com/update.php. This should take you to the web based update window. Just follow on screen instructions. Finally you will get a confirmation that your upgrade is over.

If you are unable to access update.php file please follow these steps:

Open the settings.php file from your downloaded installation using any text editor. Look out for the line “$update_free_access = FALSE; and change the FALSE to TRUE. Save the file and reupload it to your webserver using the FTP client. Now try out www.example.com/update.php. You should be able to proceed further.

After update is over then go to the minimized administration window of your website and uncheck the maintenance mode. Re enable the modules which you have disabled. Save these settings.

You have completed the upgrade isn’t it?

, , , ,

22 Comments

Drupal_2

3 by drtbalu
3, a photo by drtbalu on Flickr.

Leave a Comment

drupal_1

2 by drtbalu
2, a photo by drtbalu on Flickr.

Leave a Comment

1

1 by drtbalu
1, a photo by drtbalu on Flickr.

Leave a Comment

Follow

Get every new post delivered to your Inbox.