Drupal/C3/Drupal-Site-Management/English

From Script | Spoken-Tutorial
Revision as of 15:51, 26 July 2016 by Nancyvarkey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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