{"id":582,"date":"2023-02-15T13:20:55","date_gmt":"2023-02-15T19:20:55","guid":{"rendered":"https:\/\/blog.nukeitmike.com\/?p=582"},"modified":"2023-02-15T13:20:55","modified_gmt":"2023-02-15T19:20:55","slug":"another-blog","status":"publish","type":"post","link":"https:\/\/blog.nukeitmike.com\/index.php\/2023\/02\/15\/another-blog\/","title":{"rendered":"Another Blog?"},"content":{"rendered":"<p>This Blog runs on WordPress installed on a Windows Server that runs in Azure.&nbsp; There are obviously cheaper and easier (probably?) places to run a WordPress blog.&nbsp; But I work in a Microsoft centric environment and I work in Azure (a lot) and doing it this way allows me to tinker and test things.<\/p>\n<p><\/p>\n<p>I decided to create another blog.&nbsp; I don\u2019t know for sure yet what I want to post there, but this one is primarily about my work related activities.&nbsp; I think this new one will be about non work things.&nbsp; I will still post here a couple of times each decade (given my current history), so no one should feel like this is going away or that they should follow this or the new one more closely.<\/p>\n<p><\/p>\n<p>In keeping with the technical nature of this blog, here is how I setup the new one.&nbsp; It has been a couple of years since I moved to the current setup, so it took me an hour or two to figure out the new setup.<\/p>\n<p><\/p>\n<p>I first downloaded the latest WordPress files.&nbsp; I am sure you can search for the page, but <a href=\"https:\/\/wordpress.org\/download\/\">Download \u2013 WordPress.org<\/a> is where I went.&nbsp; As of this writing, the current version is 6.1.1, so that is what I downloaded.&nbsp; Then I created a directory for the new blog site, and extracted the WordPress files.&nbsp; In IIS, I right clicked on Sites, and selected Add Website (names changed to protect the guilty):<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"322\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb.png?resize=440%2C322&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>For now, I entered the site name, and gave it the path to the WordPress files for this site.&nbsp; I left it as \u2018http\u2019 and entered the host name (the web address for the site).&nbsp; This is so I can work on getting the setup done (locally on the machine) before I add DNS and SSL Certs.&nbsp; I also had to update the \u2018hosts\u2019 file on the machine to point the new site name to the local machine.<\/p>\n<p>When you have it setup, you can right click on the site, <em>Manage Website&gt;Browse<\/em> to get to the setup for the site.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"295\" height=\"304\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-1.png?resize=295%2C304&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>This is an indication that you at least have IIS and local hosts file setup working(ish).&nbsp; So select your language hit continue, where you are then reminded that there is more to the story than just he WordPress files:<a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-2.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"243\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-2.png?resize=338%2C243&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>WordPress has an <a href=\"https:\/\/wordpress.org\/documentation\/article\/creating-database-for-wordpress\/\" target=\"_blank\" rel=\"noopener\">article<\/a> with instructions on how to setup the new database in various scenarios.&nbsp; In my case, I use the MySQL Client.&nbsp; The instructions are great except that the commands are not exactly current.&nbsp; Versions of MySQL after 8 do not allow you to create the db user implicitly when you are granting permissions.&nbsp; You have to create the user first.&nbsp; If you are using the MySQL Client, here are the steps that should be in the article:<\/p>\n<p><font size=\"3\">CREATE DATABASE databasename;<br \/>\nCREATE USER &#8216;newusername&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>\nGRANT ALL PRIVILEGES ON databasename.* TO &#8216;newusername&#8217;@&#8217;localhost&#8217;;<br \/>\nFLUSH PRIVILEGES;<\/font><\/p>\n<p>The lower case portions of the above commands should be changed to match your preferred names.&nbsp; You can leave localhost.&nbsp; See if you can spot the error in the WordPress documentation, as shown in my example here:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-3.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"301\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-3.png?resize=392%2C301&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Here is how that applies to the setup:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-4.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"397\" height=\"217\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-4.png?resize=397%2C217&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>When you hit submit, this information gets written to the wp-config.php file.&nbsp; That works if you have IIS configured correctly.&nbsp; If not, you might get this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-5.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"218\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-5.png?resize=244%2C218&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>This issue could be avoided if I had tried the \u2018Test Settings\u2026\u201d button.<br \/><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-6.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"166\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-6.png?resize=244%2C166&#038;ssl=1\" border=\"0\"><\/a><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-7.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"165\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-7.png?resize=269%2C165&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Basically, the web service can\u2019t write to the directory, so it can\u2019t update the file.&nbsp; The fix for this is to create an account to run the website and apppool.&nbsp; It needs to have read\/write access to the directory.&nbsp; <\/p>\n<p>Create a local account to use for this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-8.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"244\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-8.png?resize=240%2C244&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>In IIS, go to the Application Pools, click on the app pool for your site, click on the Advanced Settings\u2026 on the right.&nbsp; In the Identity field hit the ellipses and enter the information for the local account:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-9.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"208\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-9.png?resize=244%2C208&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Then in IIS, click on the website and the Advanced Settings\u2026 on the right.&nbsp; In the Physical Path Credentials field, hit the ellipses and enter the information for the local account.&nbsp; Notice I got the username right this time, for my local user. In the previous screen shot, I had it as test.local, but I created it as testlocal so that didn\u2019t work:<br \/><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-10.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"208\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-10.png?resize=244%2C208&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Once you have done all of that, and you enter the correct information, you get to this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-11.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"51\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-11.png?resize=244%2C51&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Once you click the button, you get to actually start putting important information in:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image-12.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"237\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2023\/02\/image_thumb-12.png?resize=244%2C237&#038;ssl=1\" border=\"0\"><\/a><\/p>\n<p>Then you are prompted to log in so you can see your Dashboard.&nbsp; You are on your own from here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Blog runs on WordPress installed on a Windows Server that runs in Azure.&nbsp; There are obviously cheaper and easier (probably?) places to run a WordPress blog.&nbsp; But I work in a Microsoft centric environment and I work in Azure (a lot) and doing it this way allows me to tinker and test things. I&hellip; <a class=\"more-link\" href=\"https:\/\/blog.nukeitmike.com\/index.php\/2023\/02\/15\/another-blog\/\">Continue reading <span class=\"screen-reader-text\">Another Blog?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,37,41],"tags":[52,56,184,203,198],"class_list":["post-582","post","type-post","status-publish","format-standard","hentry","category-azure","category-web-stuff","category-wordpress","tag-azure","tag-blogs","tag-updates","tag-windows-server","tag-wordpress","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcW544-9o","_links":{"self":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/comments?post=582"}],"version-history":[{"count":1,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/582\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/582\/revisions\/583"}],"wp:attachment":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/media?parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/categories?post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/tags?post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}