{"id":934099,"date":"2019-01-15T15:23:41","date_gmt":"2019-01-15T14:23:41","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=934099"},"modified":"2021-07-29T10:27:03","modified_gmt":"2021-07-29T08:27:03","slug":"what-is-localhost-wordpress","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/","title":{"rendered":"What is Localhost? (and How to Set It Up for WordPress)"},"content":{"rendered":"<p>Setting up a localhost environment for WordPress so it can run on your computer can save you loads of time. For one thing, you can test WordPress updates, plugins and themes to make sure they\u2019re a-okay before pushing changes to your live site. You can learn WordPress development. You can even work on your site offline, or while traveling and don\u2019t have wifi.<\/p>\n<p>Best of all, you can tinker with your site without fear of breaking your live site and impacting your site visitors. And fortunately, setting up WordPress locally only takes a few minutes thanks to the many fantastic solutions that have been released in recent years.<\/p>\n<p>In this post, we\u2019ll explore what a localhost environment is, why it\u2019s worth setting one up, and we\u2019ll look at the top options available for WordPress. Then I\u2019ll step you through how to set up by Local by Flywheel, my favorite solution for setting up WordPress locally.<\/p>\n<h2>What is a Localhost Environment?<\/h2>\n<p>In computer networking, \u201clocalhost\u201d refers to the computer that a program is running on. For example, if you\u2019re running a program such as a browser on your computer, then your computer is considered to be the \u201clocalhost.\u201d<\/p>\n<p>In the context of running WordPress \u201clocally,\u201d setting up a localhost environment means creating a server-like environment on your computer that allows you to run WordPress. Because the thing is, you can\u2019t just install WordPress on your computer like an executable file \u2014 it needs a server environment that can power PHP and MySQL for your local site\u2019s database.<\/p>\n<p>This is where local server environment software comes in. Popular solutions like DesktopServer, Local by Flywheel, and Vagrant \u2014 which we\u2019ll explore in more detail below \u2014 let you create a localhost environment on your computer that can support web server software like Apache or NGINX, on top of which you can then install WordPress.<\/p>\n<h3>Why Set Up WordPress Locally?<\/h3>\n<p>When you\u2019re starting out with WordPress, it\u2019s easy to make changes directly to your live site. But over time, as your site grows and becomes more complex (i.e., you might add WooCommerce and start selling products), updating your live site leaves you open to all kinds of things going wrong.<\/p>\n<p>Setting up WordPress locally on your computer ensures you have a second copy of your site \u2014 aka a staging version \u2014 which you can use as a testing ground before making changes to your live site.<\/p>\n<p>Setting up WordPress locally on your computer comes with many other advantages:<\/p>\n<ul>\n<li>If you\u2019re a digital nomad or travel often, you\u2019ll be able to access your website without needing wifi.<\/li>\n<li>Manipulating files and making changes locally is faster when files don\u2019t have to travel to a remote server.<\/li>\n<li>You can learn WordPress development on your computer.<\/li>\n<li>It\u2019s cheaper \u2014 no need to buy web hosting or a domain.<\/li>\n<\/ul>\n<p>Personally, running a localhost environment has become invaluable to my workflow, particularly as I regularly test themes and plugins for blog posts. With a localhost environment set up on my computer, I can quickly spin up a new WordPress install faster \u2014 and cheaper \u2014 than it takes to make a cup of coffee.<\/p>\n<h2>Top 3 Localhost Solutions for WordPress<\/h2>\n<p>Over the years, I\u2019ve tried and tested lots of localhost solutions. But the thing is, I\u2019m impatient. I\u2019d rather spend my time designing and developing sites than wasting time installing Visual C++ libraries (I\u2019m looking at you, WampServer), trying to fix firewalls and interpret confusing and frustrating error messages (grr\u2026. XAMPP\u2026) or messing around with setting up databases (thanks for nothing, MAMP).<\/p>\n<p>So while I\u2019d encourage you to check out WampServer, MAMP and XAMPP if you\u2019re interested in testing localhost technologies for yourself, there are three solutions I recommend wholeheartedly: DesktopServer, Local By Flywheel, and Vagrant.<\/p>\n<h3>1. <a href=\"https:\/\/serverpress.com\/\">DesktopServer<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934115\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost.png\" alt=\"DesktopServer Localhost\" width=\"1092\" height=\"660\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost.png 1092w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-300x181.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-768x464.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-1024x619.png 1024w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>DesktopServer, by the folks at ServerPress, lets you quickly and easily set up multiple WordPress sites on your computer in under 5 minutes (trust me, I timed it!).<\/p>\n<p>If you\u2019re new to DesktopServer, start with the free version. After signing up for an account and downloading the software (it\u2019s 197 MB), a set-up wizard takes you thought the installation process. Once DesktopServer is installed on your computer, you can set up your first WordPress site.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934120\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-installation.png\" alt=\"DesktopServer Localhost Installation\" width=\"862\" height=\"685\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-installation.png 862w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-installation-300x238.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-installation-768x610.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" \/><\/p>\n<p>Whenever you need to set up a new WordPress install, just fire up DesktopServer and choose the option to create a new development website. It will do its work in the background and then provide a localhost URL where you can finish setting up your WordPress site.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934126\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-configuration.png\" alt=\"DesktopServer Localhost Configuration\" width=\"862\" height=\"685\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-configuration.png 862w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-configuration-300x238.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/desktopserver-localhost-configuration-768x610.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" \/><\/p>\n<p>I\u2019m a big fan of DesktopServer. I\u2019ve been using it for many years and it\u2019s not only super easy to set up, but it\u2019s never failed me the way other localhost solutions have. DesktopServer just works.<\/p>\n<p>Key features include:<\/p>\n<ul>\n<li>The wizard makes it simple to set up a new WordPress install in about 1 minute.<\/li>\n<li>Cross-platform support for macOS and Windows.<\/li>\n<li>Save <a href=\"https:\/\/serverpress.com\/how-to-use-blueprints-for-quick-consistent-wordpress-development\/\">blueprints<\/a>, aka website configurations, you frequently use so you can quickly set up new WordPress sites quickly.<\/li>\n<li>Supports Multisite.<\/li>\n<\/ul>\n<p>While the free version of DesktopServer offers limited features, for $99 the premium version offers more powerful features, including the ability to create unlimited websites and updates.<\/p>\n<p>It\u2019s also worth mentioning that DesktopServer provides an optimized AMP stack (Apache, MySQL and PHP). So if you want a solution that supports NGINX, read on.<\/p>\n<h3>2. <a href=\"https:\/\/localbyflywheel.com\/\">Local By Flywheel<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934132\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost.png\" alt=\"Local by Flywheel Localhost\" width=\"1094\" height=\"658\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost.png 1094w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-300x180.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-768x462.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-1024x616.png 1024w\" sizes=\"(max-width: 1094px) 100vw, 1094px\" \/><\/p>\n<p>Local by Flywheel is a localhost solution that has quickly gained in popularity thanks to its user-friendly interface. Compared to other localhost solutions, Local by Flywheel is a breath of fresh air!<\/p>\n<p>While tools like XAMPP and Vagrant are powerful, giving you more control over your local server environment, they\u2019re not exactly easy to use if you don\u2019t have a development background. Local by Flywheel, meanwhile, is perfect for beginners and developers alike working on small to medium website projects.<\/p>\n<p>Local by Flywheel is free to download, but you\u2019ll need to sign up for an account and choose whether you want to use it for macOS or Windows. You\u2019ll then need to download the software, which is 550 MB.<\/p>\n<p>Setting up a new WordPress website is as easy as clicking through a wizard. During setup, you can choose the default setup (PHP 7.2.9, NGINX + Varnish, and MySQL 5.7 at the time of writing), or set up a custom install with your choice of PHP version, web server (NGINX or Apache), and version of MySQL.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934138\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel.png\" alt=\"Local by Flywheel Localhost Overview Panel\" width=\"1112\" height=\"777\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel.png 1112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-300x210.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-768x537.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-1024x716.png 1024w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><\/p>\n<p>Key features include:<\/p>\n<ul>\n<li>Create a new WordPress install in just a few clicks.<\/li>\n<li>Cross-platform support for macOS and Windows.<\/li>\n<li>Set up \u201cblueprints\u201d so you can quickly deploy new sites using frequently used configurations.<\/li>\n<li>Set up custom configurations using your choice of PHP and MySQL versions, and Apache or NGINX \u2014 and can hot-swap once you\u2019re up and running without impacting your site.<\/li>\n<li>Access to SSH and WP-CLI.<\/li>\n<li>Supports Multisite.<\/li>\n<\/ul>\n<p>Local by Flywheel is completely free and you can set up unlimited sites (as far as I can tell \u2014 I haven\u2019t seen any information contrary to this!).<\/p>\n<h3>3. <a href=\"https:\/\/www.vagrantup.com\/\">Vagrant<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934144\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/vagrant-localhost.png\" alt=\"Vagrant Localhost\" width=\"1092\" height=\"663\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/vagrant-localhost.png 1092w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/vagrant-localhost-300x182.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/vagrant-localhost-768x466.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/vagrant-localhost-1024x622.png 1024w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>So far we\u2019ve looked at options that are great for WordPress implementers and those working on small to medium websites. But what about large sites, or developers who need flexibility and portability?<\/p>\n<p>Vagrant lets you create and configure lightweight, reproducible, and portable development environments \u2014 i.e. virtual machines \u2014 which you can use as local server environments. It\u2019s ideal for developers who want full control over their localhost environment since you can control every aspect of it, more so than solutions like XAMPP or MAMP.<\/p>\n<p>Setting up Vagrant only takes a couple of minutes. After downloading and installing <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">VirtualBox<\/a> and <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">Vagrant<\/a>, you can then download one of the many pre-configured \u201cboxes\u201d shared by the Vagrant community. I recommended <a href=\"http:\/\/vccw.cc\/\">VCCW<\/a>, a Vagrant configuration for WordPress plugin, theme, and website development.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934150\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/VCCW-vagrant-localhost-configuration.png\" alt=\"VCCW Vagrant Localhost Configuration\" width=\"774\" height=\"477\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/VCCW-vagrant-localhost-configuration.png 774w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/VCCW-vagrant-localhost-configuration-300x185.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/VCCW-vagrant-localhost-configuration-768x473.png 768w\" sizes=\"(max-width: 774px) 100vw, 774px\" \/><\/p>\n<p>As developer Daniel Pataki highlights in his <a href=\"https:\/\/premium.wpmudev.org\/blog\/vagrant-wordpress-test-environment\/\">excellent Vagrant explainer on the WPMU DEV blog<\/a>:<\/p>\n<blockquote><p>Since Vagrant uses virtual machines you can download boxes which mimic popular web hosts completely, thus resulting in a near identical local and production environment.<\/p><\/blockquote>\n<p>How cool is that?<\/p>\n<p>In addition to its flexibility, Vagrant is also portable, which is important when you\u2019re working in teams or working from different locations. The <em><strong>Vagrantfile<\/strong><\/em> and <em><strong>install <\/strong><\/em>files are all you need for a complete server configuration, with both files typically less than 1 KB each.<\/p>\n<p>Key features include:<\/p>\n<ul>\n<li>Set up virtual machines for local development.<\/li>\n<li>Flexible and portable \u2014 configure virtual machines and share them with your team.<\/li>\n<li>Download pre-configured boxes created by the Vagrant community.<\/li>\n<li>Use the command line to manage your virtual machines.<\/li>\n<li>Cross-platform support macOS, Windows, Linux and more.<\/li>\n<\/ul>\n<p>Vagrant is free and open source. If you\u2019re a developer who\u2019s frustrated by web server software with limited functionality, or you just want something you can use via the command line, Vagrant is well worth trying out.<\/p>\n<div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script>\n<h2>How to Set up WordPress Locally with Local By Flywheel<\/h2>\n<p>Local by Flywheel has become my software of choice when it comes to setting up WordPress locally, mostly due to the options it provides for creating custom installs. But I\u2019ll also admit, I love how easy it is to use and the interface makes setting up new WordPress installs less of a chore!<\/p>\n<p>To set up Local by Flywheel, first you need to download and install the software.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934160\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-download.jpg\" alt=\"Local by Flywheel Localhost Download\" width=\"1094\" height=\"658\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-download.jpg 1094w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-download-300x180.jpg 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-download-768x462.jpg 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-download-1024x616.jpg 1024w\" sizes=\"(max-width: 1094px) 100vw, 1094px\" \/><\/p>\n<p>A pop-up will display, asking you to choose your platform (Mac or Windows). Fill out the form with your details and click \u201cGet it now!\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934166\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-installation.png\" alt=\"Local by Flywheel Localhost Installation\" width=\"641\" height=\"658\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-installation.png 641w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-installation-292x300.png 292w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-installation-300x308.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<p>Once the download is finished, install it. And when it\u2019s done, open Local by Flywheel on your computer.<\/p>\n<p>Initially, you\u2019ll be prompted to set up a VirtualBox and Host Machine, which Local by Flywheel will go ahead and do for you when you click \u201cLet\u2019s go!\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934172\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-virtualbox.png\" alt=\"Local by Flywheel Localhost Virtualbox\" width=\"1112\" height=\"777\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-virtualbox.png 1112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-virtualbox-300x210.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-virtualbox-768x537.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-virtualbox-1024x716.png 1024w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><\/p>\n<p>And that\u2019s it, Local by Flywheel is ready to go!<\/p>\n<p>Now it\u2019s time to create your first WordPress site. Click the green \u201cCreate a new site\u201d button to get started.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934177\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-create-site.png\" alt=\"Local by Flywheel Localhost Create New Site\" width=\"1112\" height=\"777\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-create-site.png 1112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-create-site-300x210.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-create-site-768x537.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-create-site-1024x716.png 1024w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><br \/>\nThe software will prompt you to give your install a name, and then choose the type of environment you want to set up. If you go with the default, it will set up web server environment using the latest versions of PHP and MySQL along with NGINX + Varnish.<\/p>\n<p>If you go with the custom option, you can configure these settings, right down to the versions of PHP and MySQL you want to use, and you can also switch to using Apache.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934182\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-environment.png\" alt=\"Local by Flywheel Localhost Environment\" width=\"1112\" height=\"777\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-environment.png 1112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-environment-300x210.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-environment-768x537.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-environment-1024x716.png 1024w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><\/p>\n<p>When you click \u201cContinue,\u201d Local by Flywheel will go about setting up your new WordPress install before displaying the details of the backend of your local site.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934138\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel.png\" alt=\"Local by Flywheel Localhost Overview Panel\" width=\"1112\" height=\"777\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel.png 1112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-300x210.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-768x537.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/local-by-flywheel-localhost-overview-panel-1024x716.png 1024w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><\/p>\n<p>When you click \u201cAdmin\u201d in the top right, you\u2019ll be taken to the WordPress admin for your site. Clicking \u201cStop site\u201d will turn off the web server and you\u2019ll no longer be able to access your site.<\/p>\n<p>And now you\u2019re ready to use Local by Flywheel on your computer! Now that you\u2019re set up, you can create new sites, and clone, export and save configurations as blueprints.<\/p>\n<h2>Wrapping Up<\/h2>\n<p>Creating a localhost environment provides an easy way to run WordPress without the need for web hosting, allowing you to quickly spin up new sites for testing and development offline.<\/p>\n<p>DesktopServer, Local by Flywheel and Vagrant are all fantastic options for creating a localhost environment. Each has its pros and cons, and I recommend trying out all three before settling on the software that best suits you and your development workflow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.<\/p>\n","protected":false},"author":47285,"featured_media":934194,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-934099","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Localhost? (and How to Set It Up for WordPress)<\/title>\n<meta name=\"description\" content=\"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Localhost? (and How to Set It Up for WordPress)\" \/>\n<meta property=\"og:description\" content=\"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-15T14:23:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-29T08:27:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Raelene Morey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Raelene Morey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\"},\"author\":{\"name\":\"Raelene Morey\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/916d553a975868ce90654f343fa25d73\"},\"headline\":\"What is Localhost? (and How to Set It Up for WordPress)\",\"datePublished\":\"2019-01-15T14:23:41+00:00\",\"dateModified\":\"2021-07-29T08:27:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\"},\"wordCount\":1932,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\",\"name\":\"What is Localhost? (and How to Set It Up for WordPress)\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png\",\"datePublished\":\"2019-01-15T14:23:41+00:00\",\"dateModified\":\"2021-07-29T08:27:03+00:00\",\"description\":\"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png\",\"width\":1100,\"height\":460,\"caption\":\"What is a Localhost and how to set it up in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What is Localhost? (and How to Set It Up for WordPress)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/916d553a975868ce90654f343fa25d73\",\"name\":\"Raelene Morey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fa33964c6065acf9d0348d177213ec83?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fa33964c6065acf9d0348d177213ec83?s=96&d=mm&r=g\",\"caption\":\"Raelene Morey\"},\"description\":\"Raelene Morey is the Co-Founder of Words By Birds, a digital writing agency that helps busy WordPress with writing articles, content strategies, lead magnets and other word-related things. A former journalist and editor, Raelene has been developing WordPress sites for over 10 years.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Localhost? (and How to Set It Up for WordPress)","description":"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"What is Localhost? (and How to Set It Up for WordPress)","og_description":"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.","og_url":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-01-15T14:23:41+00:00","article_modified_time":"2021-07-29T08:27:03+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png","type":"image\/png"}],"author":"Raelene Morey","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Raelene Morey","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/"},"author":{"name":"Raelene Morey","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/916d553a975868ce90654f343fa25d73"},"headline":"What is Localhost? (and How to Set It Up for WordPress)","datePublished":"2019-01-15T14:23:41+00:00","dateModified":"2021-07-29T08:27:03+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/"},"wordCount":1932,"commentCount":2,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/","url":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/","name":"What is Localhost? (and How to Set It Up for WordPress)","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png","datePublished":"2019-01-15T14:23:41+00:00","dateModified":"2021-07-29T08:27:03+00:00","description":"Creating a localhost environment for WordPress can save you a ton of time. Learn how to do it, along with our top 3 recommendations for web server software.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/what-is-local-host-and-how-to-set-it-up-in-WordPress.png","width":1100,"height":460,"caption":"What is a Localhost and how to set it up in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/what-is-localhost-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"What is Localhost? (and How to Set It Up for WordPress)"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/916d553a975868ce90654f343fa25d73","name":"Raelene Morey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fa33964c6065acf9d0348d177213ec83?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fa33964c6065acf9d0348d177213ec83?s=96&d=mm&r=g","caption":"Raelene Morey"},"description":"Raelene Morey is the Co-Founder of Words By Birds, a digital writing agency that helps busy WordPress with writing articles, content strategies, lead magnets and other word-related things. A former journalist and editor, Raelene has been developing WordPress sites for over 10 years."}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/934099"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/47285"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=934099"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/934099\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/934194"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=934099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=934099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=934099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}