{"id":10583,"date":"2023-12-13T04:17:00","date_gmt":"2023-12-13T04:17:00","guid":{"rendered":"https:\/\/youstable.com\/blog\/?p=10583"},"modified":"2023-12-13T04:17:02","modified_gmt":"2023-12-13T04:17:02","slug":"install-wordpress-on-localhost","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/install-wordpress-on-localhost","title":{"rendered":"How to Install WordPress on LocalHost &#8211; A Beginner-Friendly Guide"},"content":{"rendered":"\n<p>We all love WordPress It is easy to design a professional-looking website without having programing knowledge at all.&nbsp;<\/p>\n\n\n\n<p>If you are website designer then working locally always been a best solution to see the changes on real time without impacting your user\u2019s experience at all.&nbsp;<\/p>\n\n\n\n<p>There are various options available to <a href=\"https:\/\/youstable.com\/blog\/how-to-install-wordpress-in-cpanel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install WordPress<\/a> CMS on your Windows, Mac or Linux based machines and here we will be discussing about 2 easiest methods on setting up WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"how-to-install-wordpress-using-ammps-wamp-stack-by-softaculous\"><strong>How to Install WordPress using Ammps (WAMP Stack) by Softaculous<\/strong>?<\/h2>\n\n\n\n<p>Here are the steps to <a href=\"https:\/\/www.youstable.com\/blog\/install-wordpress-and-ssl-on-aapanel\/\">Install WordPress<\/a> using Ammps are:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-1-download-and-install-ampps\"><strong>Step 1<\/strong>: Download and Install AMPPS<\/h3>\n\n\n\n<p><strong>Visit the official AMPPS website:<\/strong> https:\/\/www.ampps.com\/download<\/p>\n\n\n\n<p>Download the AMPPS installer that matches your operating system <strong>(Windows, macOS, or Linux)<\/strong>.<\/p>\n\n\n\n<p>Run the installer and follow the on-screen instructions to install AMPPS on your computer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-2-start-and-login-ampps\"><strong>Step 2<\/strong>: Start &amp; Login AMPPS<\/h3>\n\n\n\n<p>After installation, launch AMPPS from your desktop or start menu and once you start you need login with your <strong>Softaculous Account<\/strong> (Create new account if you don\u2019t have already <a href=\"https:\/\/www.softaculous.com\/clients\" target=\"_blank\" rel=\"noopener\">https:\/\/www.softaculous.com\/clients<\/a>) and click on <strong>Continue<\/strong> on <strong>Services Installation<\/strong> Tab.<\/p>\n\n\n\n<p><strong>By Default it will install&nbsp;<\/strong><\/p>\n\n\n\n<p>Php 7.4, Softaculous, MySQL 8.0.1, PMA 5.2.1 and Apache 2.4.54<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/X7ypYlioqzA4hq7PvuBinWOyYtGawHfUSrS_Bign2KwEYZhBfvetG36MPJT3-zJNOt25XidpIOoHxRW6fHQgFBAFg1Ap9hXbN7iZ0mwohI_wWx89go_F5oWja9zIh2q5kzK8c8XI2Uv8QTc3vll_CZg\" alt=\"\" style=\"width:498px;height:431px\" width=\"498\" height=\"431\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-3-start-apache-mysql-and-php\"><strong>Step 3:<\/strong> Start Apache, MySQL and Php<\/h3>\n\n\n\n<p>Once AMPPS is running, you&#8217;ll see the <strong>AMPPS Control Center<\/strong>.<\/p>\n\n\n\n<p>Start the Apache and MySQL services by clicking the &#8220;<strong>Start<\/strong>&#8221; button next to each of them. They should turn green when they are running.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/4kliHaYJo6VbDZQmxpjxcL3lqMTOC7GBZ4psMBy2gIksiruKNVS44EVUPTt400hNMbIhxeytJnLgpWnOpdTqmvVIU_KPILvUJ2GZKe_0SMwJTG8dBC3ih99PDjC2qcV9WwcW-1Mhx6EedfX9fUcen0c\" alt=\"\" style=\"width:462px;height:775px\" width=\"462\" height=\"775\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-4-create-a-database-for-wordpress\"><strong>Step 4:<\/strong> Create a Database for WordPress<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open a web browser and go to http:\/\/localhost\/ampps.<\/li>\n\n\n\n<li>Click on the &#8220;<strong>phpMyAdmin<\/strong>&#8221; link in the AMPPS Control Center. This will open phpMyAdmin in your browser.<\/li>\n\n\n\n<li>It will ask you login credentials and by details username is \u201c<strong>root<\/strong>\u201d and password is \u201c<strong>mysql<\/strong>\u201d<\/li>\n\n\n\n<li>Click on &#8220;<strong>Databases<\/strong>&#8221; in phpMyAdmin&#8217;s menu.<\/li>\n\n\n\n<li>Enter a name for your WordPress database (e.g., &#8220;wordpress&#8221;) and select &#8220;<strong>utf8_general_ci<\/strong>&#8221; as the collation.<\/li>\n\n\n\n<li>Click the &#8220;<strong>Create<\/strong>&#8221; button to create the database.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/TD9a5Q9YHrEX8QYTKkwYdYQC6J-DiP0tZIgY8T30AefM-M3wpNAkHCz-fH18cr2hbY4ZJugIqmFAequ93IyuBoh0N54ARDDBJdUUM3mdgv5fFkZnYeyfijGM4Eo5MQ2SvfsFxBFK9DBa1X2Eb2KF6_8\" alt=\"\" style=\"width:710px;height:219px\" width=\"710\" height=\"219\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-5-download-wordpress\"><strong>Step 5:<\/strong> Download WordPress<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visit the official WordPress website: https:\/\/wordpress.org\/download\/<\/li>\n\n\n\n<li>Download the latest version of WordPress in a ZIP format.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/d7oGpmFjvL95MZjfdNo0WRLigY9iu9NITW_FYsUYk31KCZT9b-UQYAe9eNDOisNs_W3O6nlGdtmaAorLRkKvQQ_FbUfbbT4zqH1IfYPESJn0ApG5ZY-sMtnxQekl6cqFqydSWnvu7mr2yaIZL2RzW3g\" alt=\"\" style=\"width:628px;height:346px\" width=\"628\" height=\"346\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On Ampps Dashboard choose \u201c<strong>root directory<\/strong>\u201d to navigate file location of your website and content&nbsp;<\/li>\n\n\n\n<li>Create new directory under \u201c<strong>root dir<\/strong>\u201d and Extract the ZIP file to a folder on your computer.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-6-configure-wordpress\"><strong>Step 6:<\/strong> Configure WordPress<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rename the &#8220;<strong>wp-config-sample.php<\/strong>&#8221; file in the WordPress folder to &#8220;<strong>wp-config.php.<\/strong>&#8220;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/uE1PtkLy6HT_SF2rR2gDySOr8XQQXfeR77bhIx-t2NhPtgQo5OcVrSQ2TL0NjTDc1gFiMKaJdl5bzFpBzjfo3KhEeGciMRf-5QdpuHJQG7ssPWkEY39cX5Zl4Btuu1dW68n9UUU1FYrYF55j-5iqhSI\" alt=\"\" style=\"width:640px;height:88px\" width=\"640\" height=\"88\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open &#8220;<strong>wp-config.php<\/strong>&#8221; in a text editor (e.g., Notepad on Windows or TextEdit on macOS).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-7-configure-database-settings\"><strong>Step 7:<\/strong> Configure Database Settings<\/h3>\n\n\n\n<p>In &#8220;<strong>wp-config.php,<\/strong>&#8221; locate the following lines:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>define(&#8216;DB_NAME&#8217;, &#8216;database_name_here&#8217;);<\/em><\/li>\n\n\n\n<li><em>define(&#8216;DB_USER&#8217;, &#8216;username_here&#8217;);<\/em><\/li>\n\n\n\n<li><em>define(&#8216;DB_PASSWORD&#8217;, &#8216;password_here&#8217;);<\/em><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/cUgPNNyj783kgUPfgV0sFCMFIZ81novtZRMG4nT2v1-svyxVX4Lgtq7LYYcf-stRhxwCv1LwW1Vi64xrIv8Md7ZYvMPCm6pLNOgAlnxEOnesh1S7Feq4vroXhADDFTPnXktlWJxS338QkHcwZ_nPlGs\" alt=\"\" style=\"width:674px;height:231px\" width=\"674\" height=\"231\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace &#8216;<strong>database_name_here<\/strong>&#8216; with the name of the database you created earlier.<\/li>\n\n\n\n<li>Replace &#8216;username_here&#8217; with &#8220;<strong>root<\/strong>.&#8221;<\/li>\n\n\n\n<li>Replace &#8216;password_here&#8217; with \u201c<strong>mysql<\/strong>\u201d.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-8-save-and-close\"><strong>Step 8: Save and Close<\/strong><\/h3>\n\n\n\n<p>Save the changes you made to &#8220;<strong>wp-config.php&#8221;<\/strong> and close the text editor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-9-install-wordpress\"><strong>Step 9: Install WordPress<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open a web browser and go to <a href=\"http:\/\/localhost\/wp\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/wp<\/a><\/li>\n<\/ul>\n\n\n\n<p>(replace &#8220;your-wordpress-folder-name&#8221; with the actual folder name where you extracted WordPress).<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/0fF3QAksCq7Cjliyz6et0B1DQ3cFQWGvQTL2Xkm1EmWe_Pv5z2YQxVldg9S72MNRiQPt_uqsgrLCHAX6GNSZY0AHCkhpLYpHEDinRiXzYmOavDnlbqtULpie630lZXvuHLXakylrTbdMikHMp5pcHGE\" alt=\"\" style=\"width:618px;height:423px\" width=\"618\" height=\"423\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will see the WordPress installation wizard. Select your language and click &#8220;<strong>Continue<\/strong>.&#8221;<\/li>\n\n\n\n<li>Fill in the requested information for your WordPress website, including the site title, username, password, and email address.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/2MWBAaKyuyGJ-lQXhcZomhJkgtWZmZYJo2CU-4QGTie1fF3L-wYqiD7q0Jw5NtPc247pVGlgTi2A4a2-vy-6WS6nUO8FyOOti-Hkzcej393t6O0XhsEwKl87OSwMpZtWaJjwWG9_-OXnZ2wewRrRldA\" alt=\"\" style=\"width:572px;height:554px\" width=\"572\" height=\"554\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click &#8220;<strong>Install WordPress.<\/strong>&#8220;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/ownrUiQBPYnD_00Y7f6gdKeu4hESppSUGXxSzpvaAtcmInQdfJSbJVpdKeYf7tP6oo1OeJ6tjzWiJvV_jaAWtxaqJf5rMiZbngUr6OP7a6jKbPD8XqJ0RCP9EGWlIT2L4jytCbdoZXtpkYbl4-z8VM0\" alt=\"\" style=\"width:602px;height:238px\" width=\"602\" height=\"238\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"step-10-access-your-local-wordpress-site\"><strong>Step 10:<\/strong> Access Your Local WordPress Site<\/h3>\n\n\n\n<p>After the installation is complete, you can log in to your local WordPress site by going to <a href=\"http:\/\/localhost\/wp\/wp-admin\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/wp\/wp-admin\/<\/a><\/p>\n\n\n\n<p><em>(replace &#8220;<strong>your-wordpress-folder-name<\/strong>&#8221; with the actual folder name where you extracted WordPress).<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the username and password you set during installation to log in.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/AeZWP9dahjL7Wd6Rn2XhTPb0QlvIx13DUvLo0qhfr92puqH-oHmKVyjL7TYHvmhrSHcAhaE5TwwV8Mupkz3NekWdgE9LvDbsERVcnOdzzVVxb9DTXILeMmY_GA-t02yrpsoVe7qkNjSr8Lv5U2gNQoI\" alt=\"\" style=\"width:596px;height:343px\" width=\"596\" height=\"343\"><\/figure>\n\n\n\n<p><em>You have now successfully installed WordPress locally using AMPPS.<\/em> You can start developing and testing your website locally before deploying it to a live server.<\/p>\n\n\n\n<p>If you are new to AMPPS application then don\u2019t worry you can follow the same procedure for <strong>XAMPP<\/strong> and <strong>WAMP<\/strong> Applications as well because all 3 of these carry the same envoirement to run your application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all love WordPress It is easy to design a professional-looking website without having programing knowledge at all.&nbsp; If you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10585,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1156,1136],"tags":[2053,2052],"class_list":["post-10583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-tutorials","tag-install-wordpress-on-localhost","tag-set-up-wordpress-on-localhost"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Install-WordPress-on-LocalHost.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/10583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=10583"}],"version-history":[{"count":2,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/10583\/revisions"}],"predecessor-version":[{"id":15826,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/10583\/revisions\/15826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/10585"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=10583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=10583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=10583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}