{"id":334,"date":"2021-06-01T14:05:54","date_gmt":"2021-06-01T13:05:54","guid":{"rendered":"https:\/\/moodytech.uk\/kb\/?post_type=knowledgebase&#038;p=334"},"modified":"2024-08-08T12:58:05","modified_gmt":"2024-08-08T11:58:05","slug":"run-wordpress-on-local-pc","status":"publish","type":"knowledgebase","link":"https:\/\/moodytech.uk\/kb\/index\/tech\/run-wordpress-on-local-pc\/","title":{"rendered":"Run WordPress on Local PC"},"content":{"rendered":"<p><strong>PREPARATION<\/strong><\/p>\r\n\r\n1. Download XAMPP: <strong><a href=\"https:\/\/www.apachefriends.org\/index.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.apachefriends.org\/index.html<\/a><\/strong><br>\r\n2. Download WordPress: <strong><a href=\"https:\/\/wordpress.org\/download\/#download-install\" target=\"_blank\" rel=\"noopener\">https:\/\/wordpress.org\/download\/#download-install<\/a><\/strong>\r\n3. Run <strong>SERVICES.MSC<\/strong> and <strong>DISABLE <\/strong><em>Internet Information<\/em> service and <em>World Wide Web Publishing<\/em> service<br>\r\n4. From the Control Panel, open <strong>WINDOWS FIREWALL<\/strong>, then <strong>ADVANCED SETTINGS<\/strong><br>\r\n5. Click <strong>INBOUND <\/strong>then <strong>NEW RULE<\/strong><br>\r\n6. Click <strong>PORT <\/strong>then <strong>TCP<\/strong>. In <strong>SPECIFIC PORTS<\/strong> enter: <strong>80,443<\/strong><br>\r\n7. Click <strong>NEXT <\/strong>then <strong>ALLOW CONNECTION<\/strong><br>\r\n8. Click <strong>NEXT <\/strong>then enter name <strong>LOCALHOST1<\/strong>, then click <strong>FINISH<\/strong><br>\r\n9. Repeat for 2nd inbound rule called <strong>LOCALHOST2<\/strong><br>\r\n10. Create folder: <strong>c:\\xampp<\/strong><br>\r\n11. Add folder exclusion for c:\\xampp to any AV software<br>\r\n12. Reboot PC <strong>SETUP<\/strong><br>\r\n13. Run <strong>XAMPP <\/strong>installer<br>\r\n14. Select <strong>ONLY Apache, MySQL, PHP, phpMyAdmin<\/strong><br>\r\n15. Select installation folder <strong>c:\\xampp<\/strong><br>\r\n16. <strong>Untick <\/strong>&#8220;<em>Learn more about Bitnami for XAMPP<\/em>&#8220;<br>\r\n17. <strong>Tick <\/strong>&#8220;<em>start control panel<\/em>&#8221; and click Finish<br>\r\n18. If <strong>NO<\/strong> red messages are shown, click the <strong>START<\/strong> buttons for Apache and MySQL<br>\r\n19. If red messages appear, read this article: <strong><a href=\"https:\/\/premium.wpmudev.org\/blog\/setting-up-xampp\/\" target=\"_blank\" rel=\"noopener\">https:\/\/premium.wpmudev.org\/blog\/setting-up-xampp\/<\/a><\/strong><br>\r\n20. Check new local server is installed here: <strong><a href=\"http:\/\/localhost\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost<\/a><\/strong><br>\r\n21. In XAMPP Control Panel, click the <strong>ADMIN<\/strong> button in the MySQL scetion<br>\r\n22. Click <strong>DATABASES<\/strong>, enter name for db, eg, WP1, click <strong>CREATE <\/strong>button, then close the browser window<br>\r\n23. Unzip WordPress.zip from 2 above in <strong>c:\\xampp\\htdocs\\WP1<\/strong> (same as db name in 22 above)<br>\r\n24. Open <strong>c:\\xampp\\htdocs\\WP1<\/strong> folder, rename <strong>wp-config-sample.php<\/strong> &gt; <strong>wp-config.php<\/strong><br>\r\n25. Edit <strong>wp-config.php<\/strong><br>\r\n26. Change <strong>define(\u2018DB_NAME\u2019, \u2018database_name_here\u2019);<\/strong> to <strong>define(\u2018DB_NAME\u2019, \u2018WP1\u2019);<\/strong><br>\r\n27. Change <strong>define(\u2018DB_USER\u2019, \u2018username_here\u2019);<\/strong> to <strong>define(\u2018DB_USER\u2019, \u2018root\u2019);<\/strong><br>\r\n28. Change <strong>define(\u2018DB_PASSWORD\u2019, \u2018password_here\u2019);<\/strong> to <strong>define(\u2018DB_PASSWORD\u2019, \u201d);<\/strong><br>\r\n29. Save and close <strong>wp-config.php<\/strong><br>\r\n30. Open web browser and go to <strong><a href=\"http:\/\/localhost\/wp\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/wp<\/a><\/strong><br>\r\n31. Select appropriate language, enter username and password and complete WP installation<br>\r\n&nbsp;\r\n<hr \/>\r\n<div class=\"noPrint align wp-block-ppb-print-page\" id='ppbPrintPage-1' data-attributes='{&quot;cId&quot;:&quot;fef71a47-5&quot;,&quot;alignment&quot;:&quot;left&quot;,&quot;isPrintSection&quot;:true,&quot;sectionSelector&quot;:&quot;.bpress-content-area&quot;,&quot;icon&quot;:{&quot;type&quot;:&quot;default&quot;,&quot;default&quot;:&quot;fiPrinter&quot;,&quot;url&quot;:&quot;&quot;},&quot;btnTypo&quot;:{&quot;fontSize&quot;:{&quot;desktop&quot;:16,&quot;tablet&quot;:20,&quot;mobile&quot;:18}},&quot;btnColors&quot;:{&quot;color&quot;:&quot;rgba(25, 91, 150, 1)&quot;,&quot;bg&quot;:&quot;#ffffff&quot;},&quot;btnBorder&quot;:{&quot;radius&quot;:&quot;5px&quot;,&quot;width&quot;:&quot;&quot;,&quot;color&quot;:&quot;#0693e3&quot;},&quot;align&quot;:&quot;&quot;,&quot;isModal&quot;:false,&quot;isIcon&quot;:true,&quot;isText&quot;:true,&quot;btnText&quot;:&quot;Print&quot;,&quot;btnPadding&quot;:{&quot;vertical&quot;:&quot;5px&quot;,&quot;horizontal&quot;:&quot;15px&quot;},&quot;btnShadow&quot;:[]}'>\r\n\t<style>\r\n\t\t#ppbPrintPage-1 .ppbPrintPage button{ font-weight: 400;font-size: 16px;font-style: normal;text-transform: none;text-decoration: auto;line-height: 135%;letter-spacing: 0px; } @media (max-width: 768px) { #ppbPrintPage-1 .ppbPrintPage button{ font-size: 20px; } } @media (max-width: 576px) { #ppbPrintPage-1 .ppbPrintPage button{ font-size: 18px; } }\r\n\t#ppbPrintPage-1 .ppbPrintPage{\r\n\t\ttext-align: left;\r\n\t}\r\n\t#ppbPrintPage-1 .ppbPrintPage button{\r\n\t\tcolor: rgba(25, 91, 150, 1);background: #ffffff;\r\n\t\tpadding: 5px 15px;\r\n\t\tborder-radius: 5px;\r\n\t\tbox-shadow: 0px 0px 0px 0px #7090b0 ;\r\n\t}\r\n\t<\/style>\r\n\r\n\t<div class='ppbPrintPage'>\r\n\t\t<button>\r\n\t\t\t<svg xmlns='http:\/\/www.w3.org\/2000\/svg' width='30' height='30' viewBox='0 0 24 24' strokeWidth='2' strokeLinejoin='round' stroke='currentColor' style='fill: none;'>\r\n\t\t\t\t<polyline points='6 9 6 2 18 2 18 9' \/>\r\n\t\t\t\t<path d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2' \/>\r\n\t\t\t\t<rect x='6' y='14' width='12' height='8' \/>\r\n\t\t\t<\/svg>\t\r\n\r\n\t\t\t<span>Print<\/span>\t\t<\/button>\r\n\t<\/div>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>PREPARATION 1. Download XAMPP: https:\/\/www.apachefriends.org\/index.html 2. Download WordPress: https:\/\/wordpress.org\/download\/#download-install 3. Run SERVICES.MSC and DISABLE Internet Information service and World Wide Web Publishing service 4. From the Control Panel, open WINDOWS FIREWALL, then ADVANCED SETTINGS 5. Click INBOUND then NEW RULE<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","knowledgebase_cat":[48],"knowledgebase_tag":[],"class_list":["post-334","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-tech"],"_links":{"self":[{"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":14,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase\/334\/revisions"}],"predecessor-version":[{"id":416,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase\/334\/revisions\/416"}],"wp:attachment":[{"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase_cat?post=334"},{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/moodytech.uk\/kb\/wp-json\/wp\/v2\/knowledgebase_tag?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}