{"id":432,"date":"2015-09-15T13:29:05","date_gmt":"2015-09-15T17:29:05","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=432"},"modified":"2015-09-15T13:31:18","modified_gmt":"2015-09-15T17:31:18","slug":"wordpress-4-x-auto-updates-under-windows","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2015\/09\/15\/wordpress-4-x-auto-updates-under-windows\/","title":{"rendered":"WordPress 4.x auto updates under windows"},"content":{"rendered":"<p>If you want your WordPress install to do auto-updates (in a Windows Server based hosting setup), you need to do one simple step.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Edit the hosts file.<\/strong><\/p>\n<p><strong>Put a local IP in there for the domain name of the site.<\/strong><\/p>\n<p><strong>Save the changes.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Example:<\/p>\n<p>10.5.5.5\u00a0 www.whatever-the-site-is.com<\/p>\n<p>Re-log into WordPress and go to dashboard-updates and in there it should tell you &#8220;future updates will be automatically applied&#8221;<\/p>\n<p><em><strong>Why is all of this needed?<\/strong><\/em>\u00a0 WordPress uses PHP CRON and that is reliant on the server being able to find the local website.\u00a0 Therefore it is necessary to put a hard-coded IP in the hosts file so the CRON job can &#8220;see&#8221; the wordpress site.\u00a0 Without the hosts entry the website will resolve to the external IP of the site, and you will have an unreachable IP issue and auto-update won&#8217;t work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want your WordPress install to do auto-updates (in a Windows Server based hosting setup), you need to do one simple step. &nbsp; Edit the hosts file. Put a local IP in there for the domain name of the site. Save the changes. &nbsp; Example: 10.5.5.5\u00a0 www.whatever-the-site-is.com Re-log into WordPress and go to dashboard-updates and in there it should<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,22,41],"tags":[5,8,42],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-iis-tips-n-tricks","category-windows-server","category-wordpress-tips","tag-iis","tag-microsoft-windows-server","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":4,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":436,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/432\/revisions\/436"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}