{"id":534,"date":"2016-01-16T00:41:08","date_gmt":"2016-01-16T00:41:08","guid":{"rendered":"http:\/\/blog.paranoidprofessor.com\/?p=534"},"modified":"2016-02-05T21:10:36","modified_gmt":"2016-02-05T21:10:36","slug":"wordpress-upgrade-by-hand","status":"publish","type":"post","link":"https:\/\/blog.paranoidprofessor.com\/index.php\/2016\/01\/16\/wordpress-upgrade-by-hand\/","title":{"rendered":"WordPress upgrade by hand"},"content":{"rendered":"<p>I received a email from my own blog. \u00a0Yup, wordpress@paranoidprofessor.com, which is actually pretty amazing as that email address doesn&#8217;t really exist.<\/p>\n<p>The content of the mail was as follows.<\/p>\n<div style=\"margin-left: 1cm;\">\n<p>Please update your site at <a id=\"yui_3_16_0_1_1452889722623_2564\" href=\"http:\/\/blog.paranoidprofessor.com\/\" target=\"_blank\">http:\/\/blog.paranoidprofessor.com <\/a>to WordPress 4.4.1.<\/p>\n<p>Updating is easy and only takes a few moments:<br \/>\n<a id=\"yui_3_16_0_1_1452889722623_2594\" href=\"http:\/\/blog.paranoidprofessor.com\/wp-admin\/update-core.php\" target=\"_blank\">http:\/\/blog.paranoidprofessor.com\/wp-admin\/update-core.php<\/a><\/p>\n<p>If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.<br \/>\n<a id=\"yui_3_16_0_1_1452889722623_2595\" href=\"https:\/\/wordpress.org\/support\/\" target=\"_blank\">https:\/\/wordpress.org\/support\/<\/a><\/p>\n<p>Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.<\/p>\n<p>The WordPress Team<\/p>\n<\/div>\n<p>I indeed had not been paying enough attention and I didn&#8217;t want to run an unpatched system. \u00a0I am also glad that the system is clever enough to pay attention to upgrades and inform me when they are missing.<\/p>\n<p>The idea that I could update my blog by simply running the update-core.php script sounded a bit too good to be true. \u00a0So, I did all of the things that you should recommend to someone getting ready to &#8220;upgrade software&#8221;.<\/p>\n<ul>\n<li>dump the database<\/li>\n<li>use wordpress export script<\/li>\n<li>backup wordpress file system<\/li>\n<\/ul>\n<p>Not to be anti-climatic but the script actually didn&#8217;t work.<\/p>\n<p>I cannot blame WordPress for this. \u00a0My setup was manually setup in a virtual environment and it is not even properly recognized by the environment manager Plesk. \u00a0So I went through and did it the old school &#8211; from the command prompt.<\/p>\n<p>I would go through and describe it blow by blow but actually this is much <a href=\"https:\/\/codex.wordpress.org\/Upgrading_WordPress_-_Extended_Instructions\" target=\"_blank\">better described<\/a> by wordpress.org. \u00a0Yet, other than the backing up\u00a0I\u00a0would recommend perhaps a few extra steps.<\/p>\n<ol>\n<li>don&#8217;t work in the actual directory itself, create a work copy<\/li>\n<li>perform all update steps in the working copy directory<\/li>\n<li>shutdown your web server<\/li>\n<li>rename the current directory to new name<\/li>\n<li>rename the work copy to your actual directory<\/li>\n<li>start up your web server<\/li>\n<li>finish the upgrade process<\/li>\n<\/ol>\n<p>Why? \u00a0Well, if you need to look anything up you always have the original directory, and your site will only be down for a few seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I received a email from my own blog. \u00a0Yup, wordpress@paranoidprofessor.com, which is actually pretty amazing as that email address doesn&#8217;t really exist. The content of the mail was as follows. Please update your site at http:\/\/blog.paranoidprofessor.com to WordPress 4.4.1. Updating &hellip; <a href=\"https:\/\/blog.paranoidprofessor.com\/index.php\/2016\/01\/16\/wordpress-upgrade-by-hand\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,3],"tags":[22,28],"_links":{"self":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/534"}],"collection":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/comments?post=534"}],"version-history":[{"count":5,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/534\/revisions"}],"predecessor-version":[{"id":674,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/534\/revisions\/674"}],"wp:attachment":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/media?parent=534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/categories?post=534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/tags?post=534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}