Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Updating Drupal 8 Core

Parent Feed: 

If you are running an old version of Drupal 8, it is likely that your site can be compromised by the known vulnerabilities. And to guard your site against possible hacks, you should update Drupal core to latest stable release in 8.x branch.

Drupal 8 Update | Joshi Consultancy Services

Updating Drupal 8 core

There are two ways to update Drupal 8 core:

1. Manually

2. Using composer

Below, we will learn how to use these methods to update Drupal 8 core.

1. Manually updating Drupal 8 core

If you are not using or managing your Drupal 8 website using composer, here are the steps to update your Drupal 8 core:

  • Tack backup of your site, both codebase and the Database. Download latest release of Drupal 8 core.
  • Copy all the files and directories from downloaded version except 'sites' and 'modules'. We assume you did not make changes to any core modules or themes. If you need to, take a backup of .htaccess and 'profiles' directory as well.
  • Overwrite your site codebase with copied files and directories.
  • Restore all the files that you previously modified.
  • Perform DB update and composer update.
  • At this stage, do not perform an update to contrib modules. Contrib module updates are not consistent and you can not rely on them to be act so. This is very efficient method when you did not alter any core or contrib module/theme files.

2. Using Composer

You can also update your Drupal 8 website using composer. This is most convenient way to update Drupal 8 website. You must have SSH access to sever in order to carry out the composer commands and update Drupal 8 core.

  • Execute composer update
  • Once done, execute drush updb
  • For consistency and to make sure everything is in order, execute drush cr

Congratulations! You have just updated your Drupal 8 website!!

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web