Difference between revisions of "Drupal/C3/Drupal-Site-Management/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "'''Title:''' Drupal Site Management '''Keywords: Drupal, Video tutorial, Reports, Help, Site Management, Update, Modules and themes, Back up''' {| style="border-spacing:0;...")
 
 
Line 19: Line 19:
  
 
Learning Objectives
 
Learning Objectives
 
  
  
Line 25: Line 24:
  
 
* View reports
 
* View reports
* Update Drupal  
+
* Update '''Drupal'''
* Update modules and themes and
+
* Update '''modules''' and '''themes''' and
 
* Restore an older version
 
* Restore an older version
 
 
  
 
|-
 
|-
Line 35: Line 32:
  
 
System requirement
 
System requirement
 
  
  
 
| style="border:1pt solid #000000;padding:0.097cm;"| To record this tutorial, I am using
 
| style="border:1pt solid #000000;padding:0.097cm;"| To record this tutorial, I am using
  
 
+
* '''Ubuntu Linux''' Operating System
* Ubuntu Linux Operating System
+
* '''Drupal''' 8 and
* Drupal 8 and
+
* '''Firefox''' Web browser
* Firefox Web browser
+
  
 
You can use any web browser as per your choice.
 
You can use any web browser as per your choice.
Line 55: Line 50:
 
| style="border:1pt solid #000000;padding:0.097cm;"| What is Site management?
 
| style="border:1pt solid #000000;padding:0.097cm;"| What is Site management?
  
 +
'''Site management''' is about
  
Site management is about
+
# Updating the code behind '''Drupal''' which are '''core, modules''', and '''themes'''
 
+
# Updating the code behind Drupal which are core, modules, and themes
+
 
# Observing and fixing errors
 
# Observing and fixing errors
 
# Studying the behaviour of users, etc.
 
# Studying the behaviour of users, etc.
 
 
  
 
|-
 
|-
Line 73: Line 65:
  
 
Point to '''Help''' menu
 
Point to '''Help''' menu
| style="border:1pt solid #000000;padding:0.097cm;"| The starting point of site management is the '''Reports''' menu.
+
| style="border:1pt solid #000000;padding:0.097cm;"| The starting point of '''site management''' is the '''Reports''' menu.
  
  
If you need additional assistance you can also consult the '''Help''' menu
+
If you need additional assistance, you can also consult the '''Help''' menu
  
 
|-
 
|-
Line 83: Line 75:
  
 
Point to the reports list
 
Point to the reports list
 
 
  
 
| style="border:1pt solid #000000;padding:0.097cm;"| Click on''' Reports.'''
 
| style="border:1pt solid #000000;padding:0.097cm;"| Click on''' Reports.'''
Line 120: Line 110:
 
|-
 
|-
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Click on '''Reports,''' '''Recent log messages'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Click on '''Reports,''' '''Recent log messages'''
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Under '''Reports,''' the '''Recent log messages''' gives us a''' list''' of''' errors''' found by '''drupal.'''
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Under '''Reports,''' the '''Recent log messages''' gives us a''' list''' of''' errors''' found by '''Drupal.'''
  
  
Line 133: Line 123:
  
  
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Under '''Reports''', the''' Status''' '''report''' shows installation or configuration problems recognized by''' Drupal.'''  
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Under '''Reports''', the''' Status report''' shows installation or configuration problems recognized by''' Drupal.'''  
  
  
Line 139: Line 129:
  
 
* I am on''' MySQL 5.6.30,'''
 
* I am on''' MySQL 5.6.30,'''
* my''' Drupal Core status''' is not up-to-date,
+
* My''' Drupal Core status''' is not up-to-date,
* my''' database''' is up-to-date, etc.
+
* My''' database''' is up-to-date, etc.
 
+
 
+
  
 
|-
 
|-
Line 155: Line 143:
 
|-
 
|-
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Point to '''Top search phrases'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Point to '''Top search phrases'''
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| '''Top search phrases''' provides the frequently used words in the search forms of your site.
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| '''Top search phrases''' provides the frequently used words in the search forms of your '''site'''.
  
 
|-
 
|-
Line 188: Line 176:
  
  
Note that you need an internet connection for Drupal to find out the current recommended version
+
Note that you need an internet connection for '''Drupal''' to find out the current recommended version
  
  
Updating '''Drupal core''' requires manual downloading of code files and applying it to your site.
+
Updating '''Drupal core''' requires manual downloading of code files and applying it to your '''site'''.
  
 
|}
 
|}
Line 200: Line 188:
  
  
The following steps are applicable to '''Bitnami drupal stack'''.
+
The following steps are applicable to '''Bitnami Drupal stack'''.
  
  
But most of the steps are applicable to any other drupal installation as well.
+
But most of the steps are applicable to any other '''Drupal''' installation, as well.
  
 
|-
 
|-
Line 209: Line 197:
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 1'''.
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 1'''.
  
First put your site into '''maintenance mode.'''
+
First put your '''site''' into '''Maintenance mode.'''
  
  
For that go to '''Configuration''' and click on '''Maintenance mode''' under '''Development'''.
+
For that, go to '''Configuration''' and click on '''Maintenance mode''' under '''Development'''.
  
 
|-
 
|-
Line 223: Line 211:
  
  
When the '''maintenance mode '''is active, only administrators can login.
+
When the '''Maintenance mode '''is active, only '''administrators''' can login.
  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.176cm;"| Show text: '''localhost:8080/drupal/user'''
 
| style="border:1pt solid #000000;padding:0.176cm;"| Show text: '''localhost:8080/drupal/user'''
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| In case you logged out admin by mistake, you can login at the URL of your home page followed by '''/user.'''
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| In case you logged out admin by mistake, you can login at the '''URL''' of your homepage followed by '''/user.'''
  
  
Others will see a message that the site is under maintenance.  
+
Others will see a message that the '''site''' is under maintenance.  
  
 
|-
 
|-
Line 259: Line 247:
 
Type '''root'''
 
Type '''root'''
  
click on '''Go''' button.
+
Click on '''Go''' button.
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| We are redirected to the phpmyadmin page.
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| We are redirected to the '''phpmyadmin''' page.
  
  
Line 266: Line 254:
  
  
Drupal admin password and phpmyadmin password both are the same.
+
'''Drupal admin password''' and '''phpmyadmin password''' both are the same.
  
  
So type the username as '''root''' and type your drupal admin password, then click on '''Go''' button.
+
So type the username as '''root''' and type your '''Drupal admin password''', then click on '''Go''' button.
  
 
|-
 
|-
Line 341: Line 329:
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 5.'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 5.'''
  
We have to create a folder to backup the code for the current version of Drupal.
+
We have to create a folder to backup the code for the current version of '''Drupal'''.
  
 
|-
 
|-
Line 376: Line 364:
 
| style="border:1pt solid #000000;padding:0.176cm;"| Open web browser
 
| style="border:1pt solid #000000;padding:0.176cm;"| Open web browser
  
Go to: [https://www.drupal.org/project/drupal https][https://www.drupal.org/project/drupal ://][https://www.drupal.org/project/drupal www][https://www.drupal.org/project/drupal .][https://www.drupal.org/project/drupal drupal][https://www.drupal.org/project/drupal .][https://www.drupal.org/project/drupal org][https://www.drupal.org/project/drupal /][https://www.drupal.org/project/drupal project][https://www.drupal.org/project/drupal /][https://www.drupal.org/project/drupal drupal]
+
Go to: https://www.drupal.org/project/drupal
 
+
  
 
Point to '''Drupal core 8.1.6'''
 
Point to '''Drupal core 8.1.6'''
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Next we have to download the latest version of Drupal.
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Next we have to download the latest version of '''Drupal'''.
  
  
Open your web browser and go the link shown: [https://www.drupal.org/project/drupal https][https://www.drupal.org/project/drupal ://][https://www.drupal.org/project/drupal www][https://www.drupal.org/project/drupal .][https://www.drupal.org/project/drupal drupal][https://www.drupal.org/project/drupal .][https://www.drupal.org/project/drupal org][https://www.drupal.org/project/drupal /][https://www.drupal.org/project/drupal project][https://www.drupal.org/project/drupal /][https://www.drupal.org/project/drupal drupal]
+
Open your web browser and go the link shown: https://www.drupal.org/project/drupal
  
  
Download the latest recommended version of Drupal 8.  
+
Download the latest recommended version of '''Drupal''' 8.  
  
  
Line 392: Line 379:
  
  
This version could be different at the time of your viewing
+
This version could be different at the time of your viewing.
  
 
|-
 
|-
Line 434: Line 421:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.176cm;"| Move the folders '''core''', '''vendor''' and other files to '''htdocs''' folder
 
| style="border:1pt solid #000000;padding:0.176cm;"| Move the folders '''core''', '''vendor''' and other files to '''htdocs''' folder
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| From the new drupal folder move the folders '''core''' and '''vendor''' and all the other regular files to the '''htdocs''' folder.
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| From the new '''Drupal''' folder  
 +
*move the folders '''core''' and '''vendor'''  
 +
*and all the other regular files to the '''htdocs''' folder.
  
 
|-
 
|-
Line 454: Line 443:
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 10.'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 10.'''
  
Visit our site by clicking on the '''Welcome''' tab, '''Go to Application''' button and '''Access Drupal '''link.
+
Visit our '''site''' by clicking on the '''Welcome''' tab, '''Go to Application''' button and '''Access Drupal '''link.
  
 
|-
 
|-
Line 467: Line 456:
  
  
Here we can confirm the drupal version number and that it is the latest one.  
+
Here we can confirm the '''Drupal''' version number and that it is the latest one.  
  
  
But our database is out of date.
+
But our database is out-of-date.
  
  
Line 503: Line 492:
  
  
If there are no errors, we have successfully updated the core.
+
If there are no errors, we have successfully updated the '''core'''.
  
 
|-
 
|-
Line 519: Line 508:
  
  
This will bring back to the site to online mode for all the users.
+
This will bring back to the '''site''' to online mode for all the users.
  
  
Line 535: Line 524:
  
  
This is easy compared to core update because drupal will do this on a click of a button.
+
This is easy compared to '''core''' update because '''Drupal''' will do this on a click of a button.
  
  
Sometimes we will have only '''modules''' or '''themes''' updates without any core update.
+
Sometimes we will have only '''modules''' or '''themes''' updates without any '''core''' update.
  
 
|-
 
|-
Line 552: Line 541:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.176cm;"| Select all
 
| style="border:1pt solid #000000;padding:0.176cm;"| Select all
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Here we can see that we have to update a few themes and modules.  
+
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Here we can see that we have to update a few '''themes''' and '''modules'''.  
  
  
Line 565: Line 554:
  
  
Make sure the checkbox is on for performing updates in maintenance mode.  
+
Make sure the checkbox is on for '''performing updates in maintenance mode'''.  
  
 
|-
 
|-
Line 572: Line 561:
  
  
This will update the code and bring the site back to online mode.
+
This will update the code and bring back the'''site''' to '''online mode'''.
  
 
|-
 
|-
Line 588: Line 577:
  
  
This will update the database like we did for the core update.
+
This will update the database like we did for the '''core''' update.
  
 
|-
 
|-
Line 599: Line 588:
  
  
Drupal will normally bring the site back to '''online mode'''.
+
'''Drupal''' will normally bring the site back to '''online mode'''.
  
  
Line 620: Line 609:
  
  
Here we can see our '''Drupal core, Modules''' and '''Themes''' everything is up to date.
+
Here we can see our '''Drupal core, Modules''' and '''Themes''' everything is up-to-date.
  
  
Line 630: Line 619:
  
  
In case we update fails for some reason you don’t know, we can go back to the previous version.
+
In case our update fails for some reason you don’t know, we can go back to the previous version.
  
  
For this we need to restore the old core and database.
+
For this, we need to restore the old '''core''' and database.
  
 
|-
 
|-
Line 639: Line 628:
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 1.'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 1.'''
  
Put the site into maintenance mode.  
+
Put the site into '''Maintenance mode'''.  
  
 
|-
 
|-
Line 664: Line 653:
  
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.176cm;"| Move the folders '''core''', '''vendor''' and other files to '''htdocs''' folder
+
| style="border:1pt solid #000000;padding:0.176cm;"| Move the folders '''core, vendor''' and other files to '''htdocs''' folder
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Then move the folders '''core''' and '''vendor''' and other regular files from '''drupal-8.1.0''' to '''htdocs''' folder.
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| Then move the folders '''core''' and '''vendor''' and other regular files from '''drupal-8.1.0''' to '''htdocs''' folder.
  
Line 671: Line 660:
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 4.'''
 
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.132cm;padding-right:0.185cm;"| '''Step No 4.'''
  
Start the Apache and MySQL servers from the '''Drupal Stack Control''' window.  
+
Start the '''Apache''' and '''MySQL servers''' from the '''Drupal Stack Control''' window.  
  
 
|-
 
|-
Line 712: Line 701:
  
  
Switch to our drupal site.
+
Switch to our '''Drupal site'''.
  
  
Line 718: Line 707:
  
  
Here you can see that now our Drupal version is 8.1.0.
+
Here you can see that now our '''Drupal''' version is 8.1.0.
  
 
|-
 
|-
Line 726: Line 715:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.176cm;"|  
 
| style="border:1pt solid #000000;padding:0.176cm;"|  
| style="border:1pt solid #000000;padding:0.176cm;"| The '''modules''' and '''themes''' were updated by drupal.
+
| style="border:1pt solid #000000;padding:0.176cm;"| The '''modules''' and '''themes''' were updated by '''Drupal'''.
  
  
Line 746: Line 735:
  
  
In this tutorial we have learnt about important aspects of Site management
+
In this tutorial we have learnt about important aspects of '''Site management'''
  
 
* Viewing and analysing reports
 
* Viewing and analysing reports
 
* Backing up database and code
 
* Backing up database and code
* Updating Drupal core
+
* Updating '''Drupal core'''
* Updating modules and themes and
+
* Updating '''modules''' and '''themes''' and
 
* Restoring a backed up version
 
* Restoring a backed up version
 
 
  
 
|-
 
|-
Line 760: Line 747:
  
 
Acknowledgement
 
Acknowledgement
 
  
  

Latest revision as of 15:51, 26 July 2016

Title: Drupal Site Management

Keywords: Drupal, Video tutorial, Reports, Help, Site Management, Update, Modules and themes, Back up


Visual Cue
Narration
Slide 1:

Drupal Site Management

Welcome to the Spoken tutorial on Drupal Site Management.
Slide 2:

Learning Objectives


In this tutorial we will learn to
  • View reports
  • Update Drupal
  • Update modules and themes and
  • Restore an older version
Slide 3:

System requirement


To record this tutorial, I am using
  • Ubuntu Linux Operating System
  • Drupal 8 and
  • Firefox Web browser

You can use any web browser as per your choice.

Slide 4:

Site Management


What is Site management?

Site management is about

  1. Updating the code behind Drupal which are core, modules, and themes
  2. Observing and fixing errors
  3. Studying the behaviour of users, etc.
Open our website which we created earlier.
Point to Reports menu


Point to Help menu

The starting point of site management is the Reports menu.


If you need additional assistance, you can also consult the Help menu

Click on Reports


Point to the reports list

Click on Reports.


We see a list of the reports that we can get on our Drupal site.

Click on Available Updates Click on Available Updates.
Point to the updates in red If anything is in red background, that means there is a security update and we should update it soon.
Point to the updates in yellow If it is in yellow, then it is not a security update, but there is an improved version available.
Click on Settings tab


On the Settings tab, we can tell Drupal how frequently to check for updates.


We can also tell it to send an e-mail to us, if there are updates available.


It is highly recommended to do this.

Click on Reports, Recent log messages Under Reports, the Recent log messages gives us a list of errors found by Drupal.


We should look at these, once in a while.

Click on Reports, Status report


Point to Mysql, Drupal core status and database


Under Reports, the Status report shows installation or configuration problems recognized by Drupal.


For instance -

  • I am on MySQL 5.6.30,
  • My Drupal Core status is not up-to-date,
  • My database is up-to-date, etc.
Click on Reports

Point to Top access denied errors and Top page not found errors

Under Reports, the Top access denied errors and Top page not found errors are also important.


These are simple ways to make sure that our site is performing the best it can.

Point to Top search phrases Top search phrases provides the frequently used words in the search forms of your site.
Point to Reports menu Understanding the reporting section of our Drupal website is the first step in maintaining our site.
Click on Available updates


Point to Drupal core 8.1.0

Point to Drupal core 8.1.6


Next let us learn to update Drupal.


Click on Available updates


We see that the current version of Drupal core is 8.1.0 and the recommended version is 8.1.6


This is the status at the time of the recording.


You may see a different recommended version here.


Note that you need an internet connection for Drupal to find out the current recommended version


Updating Drupal core requires manual downloading of code files and applying it to your site.

We will see the upgrading process step by step.


The following steps are applicable to Bitnami Drupal stack.


But most of the steps are applicable to any other Drupal installation, as well.

Go to Configuration menu >> Development >> Maintenance mode Step No 1.

First put your site into Maintenance mode.


For that, go to Configuration and click on Maintenance mode under Development.

Put checkmark to Put site into maintenance mode Check the option to Put site into maintenance mode.
Click on Save configuration Click on Save configuration button.


When the Maintenance mode is active, only administrators can login.

Show text: localhost:8080/drupal/user In case you logged out admin by mistake, you can login at the URL of your homepage followed by /user.


Others will see a message that the site is under maintenance.

Open Bitnami Drupal Stack


Click on Open PhpMyAdmin

Step No 2.

Let us backup the database of the current version.


Open your Bitnami Drupal Stack control window.


Refer the tutorial Installation of Drupal to recollect how to open this control window.


Click on Open PhpMyAdmin button.

Text: root


Text: Admin & phpmyadmin = root


Type root

Click on Go button.

We are redirected to the phpmyadmin page.


The default username is root.


Drupal admin password and phpmyadmin password both are the same.


So type the username as root and type your Drupal admin password, then click on Go button.

Click on Export button To take a backup, first click on Export button at the top panel.
choose the Export method as Custom Then choose the Export method as Custom.
Select bitnami_drupal8 under the Databases Select bitnami_drupal8 under the Database list.
Set file name as drupal-8.1.0 and

Compression as gzipped

Under the Output section, give the filename template as drupal-8.1.0 and set the Compression as gzipped.


The filename could be different based on your current version.

Check Add DROP DATABASE statement and Add DROP TABLE Under the section Object creation options, put a checkmark on Add DROP DATABASE statement option.


Put a checkmark on Add DROP TABLE option.

Scroll down and click on Go Scroll down and click on Go button at the bottom.
Click on OK button Click on OK button to save the file.
Go to Downloads and point to drupal-8.1.0.sql.gz Go to your Downloads folder and check for the backup file drupal-8.1.0.sql.gz.
Switch to the Bitnami Drupal Stack control window Step No 3.

We should shut down all the servers.


To stop all the running servers, switch to the Bitnami Drupal Stack control window.

Click on the Manage Servers, Stop All button. Click on the Manage Servers tab and then click on the Stop All button.
Click on the Welcome tab, Open Application Folder button Step No 4.

Click on the Welcome tab and then on Open Application Folder button.


This will open in the file browser.

Navigate apps, drupal, htdocs Navigate to the folders apps, then drupal and finally htdocs.
Create new folder Step No 5.

We have to create a folder to backup the code for the current version of Drupal.

Rename as drupal-8.1.0 Name this folder with the current version number.
Move backup database file to drupal-8.1.0 folder Next move the backup database file to the drupal-8.1.0 folder.
Go back to the htdocs folder Step No 6.

Go back to the htdocs folder.

Move the folders core, vendor and other files to drupal-8.1.0 Next move the folders core and vendor and all the other files by cut and pasting into the backup folder drupal-8.1.0.


This will keep both the database and the code in one place.


This is a backup copy of the old version of the core, in case you have to revert back.

Go back to our htdocs folder Step No 7.

Go back to our htdocs folder.

Open web browser

Go to: https://www.drupal.org/project/drupal

Point to Drupal core 8.1.6

Next we have to download the latest version of Drupal.


Open your web browser and go the link shown: https://www.drupal.org/project/drupal


Download the latest recommended version of Drupal 8.


At the time of this recording it is Drupal core 8.1.6.


This version could be different at the time of your viewing.

Click on it Click on it to open.
Click on the zip file Click on the tar.gz or zip file to download.
Click on OK button Click on the OK button to save it.
Go to Downloads folder

Move drupal-8.1.6.zip file to

htdocs folder

Now go to your Downloads folder and move the drupal zip file to your htdocs folder.


drupal-8.1.6.zip file is provided in the Code files link in the webpage of this tutorial.


If you don’t have internet connection, please download and use it.

Unzip the file

Point to drupal-8.1.6 folder

Step No 8.

Unzip the file. This will create a folder drupal-8.1.6 in the htdocs folder.

Double click on it Double click on it to open.
Move the folders core, vendor and other files to htdocs folder From the new Drupal folder
  • move the folders core and vendor
  • and all the other regular files to the htdocs folder.
Switch to the Bitnami Drupal Stack window Step No 9.

Switch to the Bitnami Drupal Stack control window.

Go to Manage Servers

Click Start All button

Now go to Manage Servers tab and start all the servers by clicking on the Start All button.
Go to Welcome tab

Click Go to Application, Access Drupal link

Step No 10.

Visit our site by clicking on the Welcome tab, Go to Application button and Access Drupal link.

Go to Reports and Status report


Point to Drupal 8.1.6


Point to database up to date

Go to Reports and Status report.


Here we can confirm the Drupal version number and that it is the latest one.


But our database is out-of-date.


Every time there is a core, module, or a theme update, the database has to be updated.

Go to Extend menu and click on update script link. Step No 11.

Let us learn to update the database.


Go to Extend menu and click on update script link.

Click on Continue button


Point to pending updates

Click on Continue button.


It says that we have some pending updates. For you it may be different.

Click Apply pending updates Click on Apply pending updates button.
Click on Administration pages link Now click on Administration pages link.


If there are no errors, we have successfully updated the core.

Click on the Go online link Step No 12:

Click on the Go online link.

Remove the checkmark to Put site to maintenance mode option Remove the checkmark to Put site to maintenance mode option.


Click on Save configuration button.


This will bring back to the site to online mode for all the users.


The steps discussed so far works for Bitnami installation.


If you have used other methods, most of the steps will be the same except for the Bitnami sections.


<<PAUSE>>

Now let us learn to update themes and modules.


This is easy compared to core update because Drupal will do this on a click of a button.


Sometimes we will have only modules or themes updates without any core update.

Click on Reports, Available updates. Step No 1:

Click on Reports menu and then Available updates.

Click on Update tab Click on Update tab.
Select all Here we can see that we have to update a few themes and modules.


Select them all.

Click on Download these updates button


Point to the checkbox

Then click on Download these updates button.


Make sure the checkbox is on for performing updates in maintenance mode.

Click on Continue button Click on Continue button to apply the updates.


This will update the code and bring back thesite to online mode.

Click on Run database updates link Step No 2.

Click on the Run database updates link.


If you have not backed up the database, do it as we did before.

Click on Continue button Click on the Continue button.


This will update the database like we did for the core update.

Click Apply pending updates Click on the Apply pending updates button.
Click on the Administration pages link Click on the Administration pages link.


Drupal will normally bring the site back to online mode.


If this is not the case, you will see an option at the top of the page to Go online.

Click on Reports, Available updates


Point to Drupal core, Modules and Themes


Step No 3.

Finally let us check everything this is up to date.


Click on Reports menu and Available updates.


Here we can see our Drupal core, Modules and Themes everything is up-to-date.


<<PAUSE>>

Next let us learn how to revert our old version.


In case our update fails for some reason you don’t know, we can go back to the previous version.


For this, we need to restore the old core and database.

Click Configuration, Put the site into maintenance mode. Step No 1.

Put the site into Maintenance mode.

Switch Drupal Stack Control window and click Stop all Step No 2.

Stop all the servers from the Drupal Stack Control window.

Switch htdocs folder Step No 3.

Open our htdocs folder.

Move the folders core, vendor and other files to drupal-8.1.6 Move the folders core and vendor and other regular files into the drupal-8.1.6 folder.
Go back to the htdocs folder

Open drupal-8.1.0 folder

Go back to the htdocs folder and open the previous version folder.
Move the folders core, vendor and other files to htdocs folder Then move the folders core and vendor and other regular files from drupal-8.1.0 to htdocs folder.
Switch Drupal Stack Control window and click Start all Step No 4.

Start the Apache and MySQL servers from the Drupal Stack Control window.

Open the phpmyadmin page Step No 5.

Restoring old database.


Open the phpmyadmin page from the Drupal Stack Control window.

Click on the Import button Click on the Import button at the top panel.
Click on the Browse button


Choose the sql file

Click on the Browse button.


Here choose the backup database file.

Click on the Go button Then click on the Go button at the bottom.
Switch to our drupal site


Click on Reports menu and Status report

Point to 8.1.0

Step No 6.

The final step is checking whether we are back to the old version.


Switch to our Drupal site.


Click on Reports menu and Status report.


Here you can see that now our Drupal version is 8.1.0.

Point to database Note that we can revert only the core and database to the old version.
The modules and themes were updated by Drupal.


We did not make a copy of it in Step 6, so we will not see the old versions here.

With this we come to the end of this tutorial.
Slide 5:

Summary


Let us summarize.


In this tutorial we have learnt about important aspects of Site management

  • Viewing and analysing reports
  • Backing up database and code
  • Updating Drupal core
  • Updating modules and themes and
  • Restoring a backed up version
Slide 7:

Acknowledgement


The video at this link summarises the Spoken Tutorial project.


Pls download and watch it.

Slide 8:

Spoken Tutorial Workshops


The Spoken Tutorial Project Team conducts workshops and gives certificates.


For more details, please write to us.

Slide 9:

Acknowledgement


Spoken Tutorial Project is funded by
  • NMEICT, Ministry of Human Resource Development and
  • NVLI, Ministry of Culture

Government of India.

This is Calvin Nikhil Tomy signing off.


Thanks for joining.

Contributors and Content Editors

Nancyvarkey, Priyacst