{"id":1074,"date":"2011-04-20T22:54:22","date_gmt":"2011-04-20T22:54:22","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1074"},"modified":"2011-04-20T22:56:39","modified_gmt":"2011-04-20T22:56:39","slug":"how-to-upgrade-drupal","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2011\/04\/how-to-upgrade-drupal\/","title":{"rendered":"How to upgrade  Drupal ?"},"content":{"rendered":"<p>Drupal is always releasing security updates  every now and then.<br \/>\nPHP communality called it patches!<br \/>\nSo here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application.<br \/>\n1.\tDownload latest release of  Drupal package from Drupal site.<br \/>\n2.\tPut your PHP Drupal site in maintenance  mode (offline)<br \/>\n3.\tTake a database backup\/export using any MYSQL  tools,  like phpmyadmin (I use it in MAMP environment ).  Same thing you can do by command line if you want to do so.<br \/>\n(mysql \u2013u  ROOT \u2013p  YOURPASSWORD  yourdatabasename  &gt; exporteddbname.sql)<br \/>\n4.\t Make backup of your Drupal  application folder.<br \/>\n5.\tNow it is time to copy all files \u2013 untar or unzip your downloaded new Drupal patch package.<br \/>\n6.\tCopy all files and folders Except \u201cSite folder\u201d, \u201c.htaccess\u201d file and \u201crobot.txt\u201d,  you can have custom configuration and setting to these files and folder so it is good not to overwrite these files and folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1079\" title=\"phpmind-how-to-update-drupal\" src=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2011\/04\/phpmind-how-to-update-drupal1.jpg\" alt=\"\" width=\"488\" height=\"487\" srcset=\"https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2011\/04\/phpmind-how-to-update-drupal1.jpg 488w, https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2011\/04\/phpmind-how-to-update-drupal1-150x150.jpg 150w, https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2011\/04\/phpmind-how-to-update-drupal1-300x300.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><br \/>\n7.\tRun CRON  in your Drupal application.<br \/>\n8.\tRun update.php  it will detect automatically type of database and schema you are using  and update it.  It takes few seconds, so please don\u2019t halt upgrading process.<br \/>\nhttp:\/\/localhost\/drupal\/update.php<br \/>\n9.\tIf above process is successful, put back your site in (Online mode) live mode.<br \/>\n10.\tSee status report and you will notice your Drupal is updated.<\/p>\n<p>Your Drupal application is safe now !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drupal is always releasing security updates every now and then. PHP communality called it patches! So here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application. 1. Download latest release of Drupal package from Drupal site. 2. Put your PHP Drupal site in maintenance mode [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[38],"tags":[],"class_list":["post-1074","post","type-post","status-publish","format-standard","hentry","category-drupal"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1074"}],"version-history":[{"count":3,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1074\/revisions"}],"predecessor-version":[{"id":1078,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1074\/revisions\/1078"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}