{"id":12390,"date":"2019-02-15T22:21:16","date_gmt":"2019-02-15T22:21:16","guid":{"rendered":"https:\/\/kriesi.at\/documentation\/enfold\/?p=12390"},"modified":"2019-06-06T05:03:54","modified_gmt":"2019-06-06T05:03:54","slug":"install-wordpress-on-localhost","status":"publish","type":"post","link":"https:\/\/kriesi.at\/documentation\/enfold\/install-wordpress-on-localhost\/","title":{"rendered":"Install WordPress on localhost"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_heading-75e5bb608c461a763fff197b3b9bdc75\">\n#top .av-special-heading.av-av_heading-75e5bb608c461a763fff197b3b9bdc75{\npadding-bottom:10px;\n}\nbody .av-special-heading.av-av_heading-75e5bb608c461a763fff197b3b9bdc75 .av-special-heading-tag .heading-char{\nfont-size:25px;\n}\n.av-special-heading.av-av_heading-75e5bb608c461a763fff197b3b9bdc75 .av-subheading{\nfont-size:15px;\n}\n<\/style>\n<div  class='av-special-heading av-av_heading-75e5bb608c461a763fff197b3b9bdc75 av-special-heading-h1 blockquote modern-quote  avia-builder-el-0  el_before_av_hr  avia-builder-el-first '><h1 class='av-special-heading-tag '  itemprop=\"headline\"  >How to install WordPress on localhost?<\/h1><div class=\"special-heading-border\"><div class=\"special-heading-inner-border\"><\/div><\/div><\/div>\n<div  class='hr av-7gqfezu-03aa2491fcbf5ae86f407c1df9e9f4a7 hr-default  avia-builder-el-1  el_after_av_heading  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-qqgdei-8802cb28846ce72dae5148a9ca07dcc2 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h2>Overview<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-7duahkq-1d7aade2163efb9c54b21b2f94ea153d '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>There are multiple ways to set up a WordPress development environment and automate the repeating\u00a0tasks which will save you a lot of time and effort in the long run. For example, to set up a WordPress site typically\u00a0the below\u00a0steps\u00a0have to be performed:<\/p>\n<ul>\n<li>Download the WordPress\u00a0files.<\/li>\n<li>Extract and copy it to the server.<\/li>\n<li>Access PHPMyAdmin and create a new\u00a0database with proper\u00a0user privilege.<\/li>\n<li>Rename wp-config-sample.php to wp-config.php and add the database info.<\/li>\n<li>Finally, go through the installing process of the WordPress site.<\/li>\n<\/ul>\n<p><strong>In this section, we will learn to install a WordPress site on your local computer using Bitnami WordPress. <\/strong>This method does not require you to follow the traditional steps mentioned above instead we can get the WordPress site up and running in just a few clicks or with a single command line.<\/p>\n<p>There are more ways to automate everything like using Grunt etc, but for now, we will just use this simple and effective approach which is easy to learn and it makes your work less repetitive to set up WordPress sites for your new projects.<\/p>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-4  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>What is a localhost?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Localhost is usually referred to a computer on which you can install a web server like XAMP, WAMP, Local by Flywheel or many another server modules available on the internet to run a website on a local IP that is visible only to you.<\/p>\n<p><strong>Here are a few reasons to consider developing your site on a local machine first:<\/strong><\/p>\n<ul>\n<li>Faster development: Website development requires going back and forth. Adding or deleting the content can be time-consuming on a live server. Saving your changes and viewing them is much faster on a local system.<\/li>\n<li>Risk-free website testing: Every time a new plugin or a custom code is installed on your WordPress site, you risk crashing the entire web site if the plugin or the code is not compatible. A local host is a good place to test the functionality of a plugin or custom code Avoid the risk of crashing the live site for everyone. If a localhost site crash, it is only for you and it is easy to restore the localhost site by removing the code or deleting the plugin folder.<\/li>\n<li>Risk-free content update: Many of us have faced this situation where you finished typing a long email or a post and you press the &#8220;Submit&#8221; button only to see an ugly error message &#8220;Page cannot be displayed&#8221; and you lose all the unsaved content when you hit that back button. Your local host site does not require internet to save change hence chances of losing the data because of poor internet connection is highly unlikely.<\/li>\n<li>It is completely free: Normally, for a website to function you need a domain name and hosting server. No need to buy a domain name or hosting space to work locally. It is completely free to install and run the localhost server on your computer.<\/li>\n<li>Easy to set up and migrate: You can churn up a working WordPress website in just a few clicks. If you are happy with the way your site looks on your local system it is easy to migrate the entire site to a live server.<\/li>\n<\/ul>\n<p><strong>Limitations<\/strong>:<\/p>\n<ul>\n<li>Only you can view the site and it is not easy to share or grant access to other developers. (Local by Flywheel has a workaround for this by providing a link to share with other users on the internet).<\/li>\n<li>Limited support for WordPress multisite development.<\/li>\n<li>Sometimes the live server environment may be different from the localhost server.<\/li>\n<li>Emails do not work out of the box until you Configure SMTP for outbound emails.<\/li>\n<\/ul>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-7  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to install a localhost server?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p><strong>Things you should know before installing:<\/strong><\/p>\n<ul>\n<li>The server automatically starts when you log in to your computer.<\/li>\n<li>Your WordPress files can be located in &#8220;bitnami-application\\apps\\SITE-NAME&#8221;.<\/li>\n<li>\u00a0Multiple WordPress sites can be installed using the Bitnami WordPress stack module.<\/li>\n<li>When you download and run the Bitnami installer change the default application folder path from &#8220;C:\\Bitnami\\wordpress-VERSION&#8221; to &#8220;D:\\ANY-FOLDER&#8221;. I personally prefer to install the application in any other driver than the one that contains the operating system this way if anything happens to the operating system and if I have to format the Drive C: my project folders in D: Drive will be unaffected.<\/li>\n<li>Setup automatic backup for your project files and folder by using the <a href=\"https:\/\/www.google.com\/drive\/download\/backup-and-sync\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Backup and Sync program.<\/a><\/li>\n<\/ul>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p><strong>OK! Let&#8217;s get started and install the program:<\/strong><\/p>\n<ul>\n<li>Download <a href=\"https:\/\/bitnami.com\/stack\/wordpress\/installer\" target=\"_blank\" rel=\"noopener noreferrer\">Bitnami WordPress<\/a>.<\/li>\n<li>Double click the installer and follow the step by step on-screen instructions\u00a0to complete the installation.<\/li>\n<li>During the installation process, the setup will ask you to enter the site name, email, username and password. Note : Passwords for phpMyAdmin and MySQL will be the same.<\/li>\n<li>Store the credentials somewhere safe as you will need this to install new WordPress sites.<\/li>\n<\/ul>\n<p>NOTE: Bitnami automatically creates a database with the same name as the site name you provide during the installation and links it to your WordPress site.<\/p>\n<p>For detailed instructions with pictures of the entire installation process please check the <strong><a href=\"https:\/\/docs.bitnami.com\/installer\/get-started\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bitnami Documentation<\/a><\/strong>.<\/p>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-11  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to install a WordPress site on your localhost?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>The steps involved in creating a separate WordPress site on the localhost depends on which program you are using. If you are using XAMP then you have to follow the <a href=\"https:\/\/kriesi.at\/documentation\/enfold\/install-wordpress-on-localhost\/#overview\" target=\"_blank\" rel=\"noopener noreferrer\">traditions steps<\/a> mentioned in the very beginning of this post.<\/p>\n<p>In order to avoid the painful\u00a0and repeating\u00a0steps of manually creating the database and linking it in the wp-config.php file we chose a more modern yet simple approach and went\u00a0ahead with\u00a0Bitnami. By default, Bitnami will install one instance of WordPress when you run the installer. To add more WordPress sites with a separate database go ahead and<\/p>\n<ul>\n<li>Download the <a href=\"https:\/\/bitnami.com\/stack\/wamp\/modules#wordpress\" target=\"_blank\" rel=\"noopener noreferrer\">Bitnami WordPress Stack Module<\/a>.<\/li>\n<li>Just to make typing the file name a bit easier in the command prompt. Rename the\u00a0downloaded file name from &#8220;bitnami-wordpress-VERSION-module-windows-x64-installer.exe&#8221; to\u00a0 &#8220;installer.exe&#8221; and place it in C: Drive.<\/li>\n<li>Open the list of programs installed on your computer and click on &#8220;Use Bitnami WordPress Stack&#8221; this should open the command prompt for you.<\/li>\n<li>Copy and paste the below line in the command prompt and hit the enter key.\n<pre><code>C:installer.exe --wordpress_instance_name NEW_BLOG_NAME\n<\/code><\/pre>\n<\/li>\n<p>The installer will open, follow the onscreen instructions to go ahead and install a separate WordPress site. If everything goes fine you should see the new site in \u201cbitnami-application\\apps\\SITE-NAME\u201d Next let&#8217;s see how to access the newly installed site \ud83d\ude42<\/ul>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-14  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to access your website frontend on localhost?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>After successfully installing the WordPress site it&#8217;s now time to access the frontend to see how things look. If you have installed the Bitnami WordPress then the server will automatically start when the computer starts.\u00a0 Open your favourite web browser and type the address\u00a0<code>http:\/\/localhost\/YOUR_SITE_NAME<\/code>\u00a0in the address bar. Make sure to replace &#8220;YOUR_SITE_NAME&#8221; with the website name you provided during the installation process.<\/p>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-17  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to access WordPress admin area?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Let the fun begin!! We can login to the WordPress admin area and change the way our web site looks. To access the WordPress admin area keep your credentials handy and type the address\u00a0<code>http:\/\/localhost\/YOUR_SITE_NAME\/wp-admin<\/code>\u00a0in the address bar of your favourite web browser. Make sure to replace &#8220;YOUR_SITE_NAME&#8221; with the website name you provided during the installation process.<\/p>\n<\/div><\/section>\n<div  class='hr av-6duneca-693cb82bff10e1d1e8c34f51f4c561f9 hr-default  avia-builder-el-20  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to access phpMyadmin?<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-58xjmtm-20f9c8fb9b445c36b3eac29671a4c547 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>When you add any content to your sites such as a post, page, images etc, or change any settings it is stored in the database. Not to be confused with the\u00a0enfold theme files which you download from ThemeForest\u00a0and upload to the WordPress site. Theme files are stored on the server and not in the database. The database can be modified, exported or imported from the phpMyAdmin area.<\/p>\n<p>To access the phpMyAdmin area and make changes to your database the default username is &#8220;root&#8221; and the password is the same as the one you gave during the Bitnami WordPress set up. Login to the phpMyAdmin area by typing the address\u00a0<code>http:\/\/localhost\/phpmyadmin\/<\/code>\u00a0in the address bar of your favourite web browser.<\/p>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-12390","post","type-post","status-publish","format-standard","hentry","category-documentation","category-getting-started-with-enfold","documentation","getting-started-with-enfold"],"modified_by":"vinay","_links":{"self":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/12390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/comments?post=12390"}],"version-history":[{"count":30,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/12390\/revisions"}],"predecessor-version":[{"id":12570,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/12390\/revisions\/12570"}],"wp:attachment":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/media?parent=12390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/categories?post=12390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/tags?post=12390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}