{"id":204,"date":"2016-04-07T10:04:57","date_gmt":"2016-04-07T10:04:57","guid":{"rendered":"https:\/\/www.vibidsoft.com\/blog\/?p=204"},"modified":"2025-05-02T11:29:22","modified_gmt":"2025-05-02T11:29:22","slug":"how-to-upgrade-drupal-from-old-version-to-latest-version-8-0-5","status":"publish","type":"post","link":"https:\/\/www.vibidsoft.com\/blog\/how-to-upgrade-drupal-from-old-version-to-latest-version-8-0-5\/","title":{"rendered":"How to upgrade drupal from old version to latest version?"},"content":{"rendered":"<p><a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/vibidsoft.png\"><img loading=\"lazy\" class=\" size-full wp-image-205 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/vibidsoft.png\" alt=\"Upgrade Drupal\" width=\"479\" height=\"250\" \/><\/a><\/p>\n<p>Before you start updating or upgrading your Drupal installation it is important that you know the difference between a major and a minor version release.<\/p>\n<ul>\n<li>A\u00a0<strong>major\u00a0<\/strong>version of Drupal core is represented by the number before the first decimal. For example Drupal\u00a0<strong>5<\/strong>.1, Drupal\u00a0<strong>6<\/strong>.1, and Drupal\u00a0<strong>7<\/strong>.1 are all different major releases. This is considered an upgrade.<\/li>\n<li>A\u00a0<strong>minor\u00a0<\/strong>version of Drupal core is represented by the decimal. For example, Drupal 7<strong>.1<\/strong>, 7<strong>.13<\/strong>, and 7<strong>.23<\/strong>\u00a0are all different minor releases of Drupal 6. This is considered an <strong>update<\/strong>.<\/li>\n<li><strong>Updating\u00a0<\/strong>means installing a new minor version, e.g. from Drupal 7.36 to 7.37.<\/li>\n<li><strong>Upgrading\u00a0<\/strong>means installing a new major version, e.g. from Drupal 7 to 8.<\/li>\n<\/ul>\n<p><strong>Update procedure (minor version change)<\/strong><\/p>\n<p>With a minor release update such as from Drupal 7.1 to the\u00a0<a href=\"https:\/\/www.drupal.org\/project\/drupal\">latest Drupal 7.x version<\/a>, you do not have to apply all the updates that have been released between the versions. You can jump directly from 7.1 to that version.<\/p>\n<ol>\n<li>Log in as a user with the permission &#8220;Administer software updates&#8221;.<\/li>\n<li>If you are updating a live, production site, go to Administration &gt; Configuration &gt; Development &gt; Maintenance mode. Enable the &#8220;Put site into maintenance mode&#8221; check box and save the configuration.<\/li>\n<li>Remove all old core files and directories, except for the &#8216;sites&#8217; directory, the original install profile in the &#8216;profiles&#8217; directory and any custom files you added elsewhere.<\/li>\n<\/ol>\n<ul>\n<li>To be more specific, in your Drupal root folder, delete all files and the following folders: includes, misc, modules, scripts, and themes. If you used a normal installation, then also delete the profiles folder, but if you used a custom profile, then in the profiles folder, delete the sub-folders minimal, standard, and testing.<\/li>\n<\/ul>\n<ul>\n<li>If you made modifications to files like .htaccess or robots.txt, you will need to re-apply them from your backup, after the new files are in place.<\/li>\n<li>Sometimes an update includes changes to settings.php (this will be noted in the release announcement). If that&#8217;s the case, replace your old settings.php with the new &#8220;default.settings.php&#8221;, and copy the site-specific entries (especially the lines giving the database name, user, and password) from the old settings.php to the new settings.php.<\/li>\n<li>If you had added any custom templates or other custom files outside the &#8220;sites&#8221; folder (note that this is generally not recommended), then you will need to restore them from your backup because they have been deleted.<\/li>\n<\/ul>\n<p>4.\u00a0Download the latest Drupal 7.x release from\u00a0<a href=\"http:\/\/drupal.org\/project\/drupal\">http:\/\/drupal.org\/project\/drupal<\/a>\u00a0to a directory outside of your web root. Extract the archive and copy the files into your Drupal directory.<\/p>\n<p>5.\u00a0Re-apply any modifications to files such as .htaccess or robots.txt and restore any deleted templates or other custom files you had in core folders.<\/p>\n<p>6. Run update.php by visiting\u00a0<a href=\"http:\/\/www.example.com\/update.php\">http:\/\/www.example.com\/update.php<\/a>\u00a0(replace <a href=\"http:\/\/www.example.com\/\">www.example.com<\/a>\u00a0with your domain name). This will update the core database tables.<\/p>\n<p>If you are unable to access update.php do the following:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Open settings.php with a text editor.<\/li>\n<li>Find the line that says:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>$update_free_access = FALSE;<\/p>\n<p>Change it into:<br \/>\n$update_free_access =TRUE;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Try again to run update.php.<\/li>\n<li>Once the update is done, $update_free_access must be reverted to FALSE.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>In a multi-site installation, run update.php again for each site.<\/p>\n<p>7. Navigate to Administration &gt; Configuration &gt; Development &gt; Performance and &#8220;clear all cache&#8221;. So that the cache is rebuilt.<\/p>\n<p>8. Go to Administration &gt; Reports &gt; Status report. Verify that everything is working as expected.<\/p>\n<p>9. Ensure that $update_free_access is FALSE in settings.php.<\/p>\n<p>10. Go to Administration &gt; Configuration &gt; Development &gt; Maintenance mode. Disable the &#8220;Put site into maintenance mode&#8221; check box and save the configuration.<\/p>\n<p><strong>Upgrade procedure (major version change)<\/strong><\/p>\n<p>Major release upgrade expects you to first update to the current minor release prior to applying the major release update. If 7.43 \u00a0is the current version of Drupal 7, and your site is running 7.38, you would first need to update to 7.43.then upgrade to 8.0.5<\/p>\n<ul>\n<li>The\u00a0<a href=\"https:\/\/www.drupal.org\/project\/migrate_upgrade\">Migrate Upgrade<\/a>module installed and enabled on the Drupal 8 site.<\/li>\n<li>After installing the module, visit your Drupal 8 site&#8217;s\/upgrade page.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal1.png\"><img loading=\"lazy\" class=\" size-full wp-image-206 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal1.png\" alt=\"drupal1\" width=\"623\" height=\"246\" \/><\/a><\/p>\n<ul>\n<li>When you are ready to proceed, press\u00a0<strong>Continue<\/strong>. This takes you to the Migrate Upgrade page shown below. Enter the database credentials and path of your Drupal 6 or 7 site&#8217;s files , and press\u00a0<strong>Review upgrade.<\/strong>If your Drupal 6 or Drupal 7 site uses a database prefix, be sure to expand the\u00a0<strong>Advanced options<\/strong>\u00a0and provide that prefix.\u00a0<a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal2.png\"><img loading=\"lazy\" class=\" size-full wp-image-207 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal2.png\" alt=\"drupal2\" width=\"571\" height=\"377\" \/><\/a><\/li>\n<\/ul>\n<p style=\"line-height: 115%; background: white; vertical-align: baseline; margin: 0in 0in 16.6pt 0in;\">If the database credentials are correct, the upgrade review page will list the sources and destinations identified and missing based on modules present on the source site. The page provides a summary of the upgrade paths found and missing and then details the missing ones first:<\/p>\n<p style=\"line-height: 115%; background: white; vertical-align: baseline; margin: 0in 0in 16.6pt 0in;\"><a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal3.png\"><img loading=\"lazy\" class=\" size-full wp-image-208 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal3.png\" alt=\"drupal3\" width=\"623\" height=\"264\" \/><\/a><\/p>\n<p>You cannot do anything directly on this page to fix these missing migrations. Some of them may just be missing implementations that need to be developed, while others signify modules not installed on the destination site. In this example, the book module is enabled on the source site but was not installed in\u00a0<a href=\"https:\/\/www.drupal.org\/node\/2350603\">the preparation step on the destination site<\/a>, therefore its reported missing.<\/p>\n<p>The available migrations are listed below this list and are collapsed by default. When uncollapsed, this list allows you to review what will end up where on the new site. For example, this shows that the block module from the source site is migrated to two modules on Drupal 8. There is absolutely nothing to do about these, the list is purely informational.<\/p>\n<p><a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal4.png\"><img loading=\"lazy\" class=\" size-full wp-image-209 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/drupal4.png\" alt=\"drupal4\" width=\"624\" height=\"264\" \/><\/a><\/p>\n<p>This is the final page before the actual execution of the upgrade, so this is the final chance to hit\u00a0<strong>Cancel<\/strong>. Once you press the\u00a0<strong>Perform upgrade<\/strong>\u00a0button, the process is started. Depending on the size and types of content\/configuration on the source site, the upgrade may take a very long time (possibly hours for a bigger data set), so be prepared for letting the process run long (note that due to password encryption, user accounts take particularly long to import).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before you start updating or upgrading your Drupal installation it is important that you know the difference between a major and a minor version release. A\u00a0major\u00a0version of Drupal core is represented by the number before the first decimal. For example&#8230; <a class=\"more-link\" href=\"https:\/\/www.vibidsoft.com\/blog\/how-to-upgrade-drupal-from-old-version-to-latest-version-8-0-5\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[71,78,8,1],"tags":[72,79,73],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":5,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":2323,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions\/2323"}],"wp:attachment":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}