{"id":1776,"date":"2009-07-05T22:45:28","date_gmt":"2009-07-05T22:45:28","guid":{"rendered":"http:\/\/justthesam.com\/2009\/07\/how-to-upgrade-wordpress-on-mac-os-x\/"},"modified":"2009-07-05T22:45:28","modified_gmt":"2009-07-05T22:45:28","slug":"how-to-upgrade-wordpress-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/justthesam.com\/?p=1776","title":{"rendered":"How to Upgrade WordPress (on Mac OS X)"},"content":{"rendered":"<div>I&#39;ve been putting together a WordPress powered blog or two recently and diligently documenting the steps required, as ever. The documentation available from the WordPress site is pretty good, but sometimes it&#39;s over verbose, whilst frustratingly also stopping short of giving you exactly the details you need. So here&#39;s what works for me to upgrade an existing WordPress installation to a newer version. This is using the manual approach BTW rather than the built in auto-upgrade functionality, which asks for FTP details (of what I&#39;m not sure, and it doesn&#39;t bother to elaborate) and therefore makes a mockery of the term &#39;auto&#39;.<\/div>\n<p><\/p>\n<div>The official instructions that got me going initially are at&#0160;<a href=\"http:\/\/codex.wordpress.org\/Upgrading_WordPress\" target=\"_blank\" rel=\"noopener\">http:\/\/codex.wordpress.org\/Upgrading_WordPress<\/a> FWIW, but I do precisely this on Mac OS X:<\/div>\n<div>\n<div>\n<ul>\n<li>Download the zipped upgrade package and unzip it&#0160;somewhere&#0160;-&#0160;e.g.&#0160;to&#0160;wordpress_upgrade&#0160;directory&#0160;for&#0160;the&#0160;sake&#0160;of&#0160;this&#0160;example.<\/li>\n<li>Backup existing installation in full &#8211; both the wordpress directory itself and the associated MySQL DB, just in case.<\/li>\n<li>Merge the newly downloaded package over your existing install (assumed to be a directory named wordpress here) with the following incantation at the command line, which takes advantage of the fact that cp merges, whereas Finder copying just oafishly replaces:<\/li>\n<li><span>&gt; cp -r&#0160;<\/span>&#0160;wordpress_upgrade\/ wordpress_original<\/li>\n<li>Compare the new wp-config-sample.php with your existing wp-config.php (e.g. using FileMerge) to see if any new config items have been added. If so, manually add those into your&#0160;wp-config.php&#0160;file, or if easier rename the sample to&#0160;wp-config.php&#0160;and put back the DB connection and other relevant bits.<\/li>\n<li><span>Load up the \/admin page in your web browser and follow the instructions to complete&#0160;the&#0160;upgrade,&#0160;which&#0160;involves&#0160;it&#0160;upgrading&#0160;any&#0160;DB&#0160;bits,&#0160;etc.<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#39;ve been putting together a WordPress powered blog or two recently and diligently documenting the steps required, as ever. The documentation available from the WordPress site is pretty good, but sometimes it&#39;s over verbose, whilst frustratingly also stopping short of giving you exactly the details you need. So here&#39;s what works for me to upgrade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,22,33,34],"tags":[],"class_list":["post-1776","post","type-post","status-publish","format-standard","hentry","category-mac","category-programming","category-webtech","category-weblogs"],"_links":{"self":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1776"}],"version-history":[{"count":0,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1776\/revisions"}],"wp:attachment":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}