{"id":4539,"date":"2020-04-01T16:21:34","date_gmt":"2020-04-01T16:21:34","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=4539"},"modified":"2021-01-12T00:27:02","modified_gmt":"2021-01-12T00:27:02","slug":"how-to-update-wordpress","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=4539","title":{"rendered":"How to update WordPress"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">How to update WordPress<\/h2>\n\n\n\n<p>Updating WordPress really is an easy task, each time a new WordPress version is released you&#8217;ll be notified on the backend dashboard, the only thing you must do is to just click on that notification and the installation will be done completely automatically, see below animation.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"916\" height=\"516\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/how-to-update-wordpress.gif\" alt=\"\" class=\"wp-image-4543\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress update common error<\/h2>\n\n\n\n<p>Updating WordPress automatically could bring some security concerns, and because of that WordPress has a mechanism to detect if your website is at risk, mostly when working on shared hosting environments, time to time that mechanism produces false positives and you&#8217;ll be prompted to the following message.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>&#8220;Please enter your FTP credentials to proceed&#8221;<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-1024x404.jpg\" alt=\"\" class=\"wp-image-4619\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-1024x404.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-300x118.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-768x303.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error.jpg 1354w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Updating WordPress &#8211; common error<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress files ownership and permissions<\/h2>\n\n\n\n<p>The first thing you&#8217;ll have to do is to make sure that ownership and permissions are properly configured, see <a rel=\"noreferrer noopener\" href=\"\/installing-wordpress\/#Setting_ownership_and_permissions\" target=\"_blank\">this article<\/a> to learn how to set them correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress SELinux settings<\/h2>\n\n\n\n<p>If your system makes use of SELinux one additional step is needed, and it has to do with configuring the context accordingly, see <a rel=\"noreferrer noopener\" href=\"\/installing-wordpress\/#Setting_SELinux_for_WordPress\" target=\"_blank\">this article<\/a> to learn how to set SELinux for WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress Files System access method<\/h2>\n\n\n\n<p>And Finally, you can temporarily add <strong>FS_METHOD = &#8216;direct&#8217;<\/strong> to your <strong>wp-config.php<\/strong> file, do not forget to remove this once the update was done, to avoid any possible security vulnerability that this change may cause, see the image below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\">FS_METHOD = 'direct';<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed-1024x462.jpg\" alt=\"\" class=\"wp-image-4622\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed-1024x462.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed-300x135.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed-768x347.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-update-common-error-fixed.jpg 1426w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>You can take a look at <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.stackexchange.com\/questions\/189554\/what-security-concerns-should-i-have-when-setting-fs-method-to-direct-in-wp-co\" target=\"_blank\">this article<\/a> for a deep dive into this particular subject.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to update WordPress Updating WordPress really is an easy task, each time a new WordPress version is released you&#8217;ll be notified on the backend dashboard, the only thing you must do is to just click on that notification and the installation will be done completely automatically, see below animation. WordPress update common error Updating &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=4539\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to update WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4539","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4539"}],"version-history":[{"count":11,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4539\/revisions"}],"predecessor-version":[{"id":5754,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4539\/revisions\/5754"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}