Update Drupal is very important for safety. In this article I will tell you how to update Drupal, and the first thing to do is Online Log in as an administrator.
Choosing the upgrade
To find out what version of kernel you have, you can by going to the "Update Available" by clicking Menu administrative panel "Reports / available Updates ". At this page will be information about the version and status of the kernel and modules, as well as about the possible upgrades.
This page will show you the upgrade, you need to do. They will be marked in red, as the picture above. If there are updates, you should put your site in maintenance mode at this point to avoid any problems for users as you upgrade.
Entering the site in maintenance mode
All software updates must be performed from an administrator or user with appropriate privileges. Sign in to your site as admin and go to Admin> Configuration menu. At the Development inset, click the "maintenance mode." Click on "place your site in maintenance mode" checkbox (see below).
While it is possible, to update the site,which is not in maintenance mode, visitors would get the access to your site and update would occur. This can lead to errors PHP succumbing to end-users. It is advisable to upgrade performed in maintenance mode to avoid potential problems.
Creation of Backups
Your Drupal-site consists of 2 parts: database and files. It is you, in fact, will be backup.
File Backup - a simple procedure, you only need:
Run the appropriate FTP-client to access the hosting - server;
Download Drupal directory and keep it in a safe place - for added security, use cloud solution, for example, your account Dropbox for individuals / small business or a full-scale cloud services for large enterprises. FTP-guide will help you if you are unfamiliar with the process.
For backup of the database where your settings and content, use PhpMyAdmin. The steps below:
Access PhpMyAdmin with Cpanel;
Select the database for backup from the menu on the left by clicking on it. It opens all tables in the database;
In the top menu, click "Export";
Click Custom - "Display all options", which offers more options. Make sure that you select all the tables;
Check the box "Add 'DROP TABLE' / VIEW / PROCEDURE / FUNCTION / EVENT statement", under the "Object Creation Options". It adjusts the automatically replace existing tables when importing data base;
Select "Go", to maintain a database in the cloud storage of your choice.
Check the site on the hacks modules and kernel
For this operation will be useful module Hacked.
This module makes it possible to run a check of all modules on the site and compare them with the original version. After module installation, you can configure whether you want to compare the end of lines or not. This is the only setting in this module. Then you can start the verification process, after which you can see a list of modules. Modules, that have changed, will be marked in red.
You can also install additional module Diff, which allows you to see what has changed and at which files.
This will give you the opportunity to do change back after the upgrade.
Delete all files and folders of the project , except the folder - site , and those, in which you made changes. Drupal is designed so, that all information (design templates, installed modules, etc.) are stored in the directory - site. Also, perhaps you have made changes, such as the file .htaccess. Therefore, all these files must be copied before.
So remove all the files and folders ,except - site (hope you still have a backup).
Download the latest version of Drupal from the official website.
For convenience, you can unzip, delete the directory - site and files, which you are not going to replaced and archived again.
Fill files at hosting .
Run update.php script (enter (your domain) /update.php in the address bar of your browser). everything must pass without errors. If something goes wrong, you also have a backup.
Go to the site and disable obsuhovuvannya mode (again Settings - Development - Daily maintenance, deactivate the checkbox "Switch site in maintenance mode" and click "Save settings").
If there are no error messages (red text), the CMS Drupal updated.