{"id":46254,"date":"2019-08-27T09:45:25","date_gmt":"2019-08-27T14:45:25","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=46254"},"modified":"2020-09-25T15:40:02","modified_gmt":"2020-09-25T19:40:02","slug":"local-development-environment-wordpress","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/","title":{"rendered":"Choosing a Local Development Environment For WordPress"},"content":{"rendered":"\n<p>Interested in making a custom modification to your WordPress site? You\u2019ve probably landed on a tutorial or blog post that gives you a snippet of code to add to a header or single post file. If you managed to add this code using the WordPress code editor you may be astonished to find your site is broken now. This could have been avoided with a <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/getting-started-with-a-wordpress-development-environment\/\">local development environment<\/a>, where you can test changes before taking them \u201clive.\u201d<\/p>\n\n\n\n<p>In this article, we&#8217;ll take a look at:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#ampstacks\">AMP Stacks<\/a><\/li><li><a href=\"#migratingtowordpress\">Migrating to WordPress<\/a><\/li><\/ul>\n\n\n\n<p>Without a local development environment, you will not be able to properly test changes on your WordPress site. But in addition to a local host, you should also have a staging site. Our <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress hosting<\/a> lets you easily create an additional site on a subdomain, so you can develop your site this way:<\/p>\n\n\n\n<p><em>Local host -&gt; staging.example.com -&gt; example.com.<\/em><\/p>\n\n\n\n<p>By developing your site this way, you can ensure quality all the way up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ampstacks\">AMP Stacks<\/h2>\n\n\n\n<p>AMP stands for Apache, MySQL, and PHP. An AMP stack gives you all the software you need to run a WordPress host on your personal computer. Advanced users often install AMP stacks manually. But this requires a lot of command line experience and tedious editing of configuration files.<\/p>\n\n\n\n<p>That\u2019s why there\u2019s a whole host of integrated AMP software on the market.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"xampandmamp\">XAMP and MAMP<\/h3>\n\n\n\n<p>For most users, <a href=\"https:\/\/www.apachefriends.org\/index.html\">XAMP<\/a> provides an easy solution. With one installation, you can automatically create as many virtual hosts as you need. It includes all the software you\u2019ll need and there\u2019s a Windows, Mac, and Linux version available to cover virtually all users. Similarly, <a href=\"https:\/\/www.mamp.info\/en\/mac\/\">MAMP<\/a> provides services along the same lines as XAMP, but it has a different interface.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"laragon\">Laragon<\/h3>\n\n\n\n<p><a href=\"https:\/\/laragon.org\/\">Laragon<\/a> is a good solution for Windows users. Unfortunately, there is no Mac or Linux version as of this writing. Laragon lets you easily create a blank host where you can use PHP, MySQL, or whatever server-side languages your app requires. Or, you can install a WordPress host with a few clicks. For those who need an SSL, Laragon easily adds a Let\u2019s Encrypt certificate to your host, so you can develop your app with secure links.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"migratingtowordpress\">Migrating To WordPress<\/h2>\n\n\n\n<p>The primary benefits of using local development environments are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Access to source files<\/li><li>Testing changes\/updates before uploading to production<\/li><li>Free play, instructional, educational purposes<\/li><\/ul>\n\n\n\n<p class=\"alert alert-info\">It\u2019s important to note that development environments listed in this article automatically create custom hostnames (<em>site.local<\/em>, for example). These will need to be updated before migrating a WordPress site to a server. Or, you could use a <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/modifying-your-hosts-file\/\">hosts file modification<\/a>.<\/p>\n\n\n\n<p>Migrating your site can be a complicated process. That\u2019s why there are migration plugins that help. You are best advised to get help from a WordPress expert in your area, or contact <a href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/how-to-get-great-technical-support\/\">InMotion Hosting live support<\/a>.<\/p>\n\n\n\n<p>(If you want to try it on your own, check out the migrations addon from the <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/updraftplus-backup-plugin\/\">UpdraftPlus plugin<\/a>.)<\/p>\n\n\n\n<p>Selecting the right local development environment depends on your comfort level and what your goals may be. If you have any questions or comments please leave them below and we&#8217;ll be happy to point you in the right direction.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interested in making a custom modification to your WordPress site? You\u2019ve probably landed on a tutorial or blog post that gives you a snippet of code to add to a header or single post file. If you managed to add this code using the WordPress code editor you may be astonished to find your site<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4325,56],"tags":[],"class_list":["post-46254","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Choosing a Local Development Environment For WordPress | InMotion Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Choosing a Local Development Environment For WordPress | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Interested in making a custom modification to your WordPress site? You\u2019ve probably landed on a tutorial or blog post that gives you a snippet of code to add to a header or single post file. If you managed to add this code using the WordPress code editor you may be astonished to find your site Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-27T14:45:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-25T19:40:02+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"Choosing a Local Development Environment For WordPress\",\"datePublished\":\"2019-08-27T14:45:25+00:00\",\"dateModified\":\"2020-09-25T19:40:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\"},\"wordCount\":550,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\",\"name\":\"Choosing a Local Development Environment For WordPress | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2019-08-27T14:45:25+00:00\",\"dateModified\":\"2020-09-25T19:40:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Choosing a Local Development Environment For WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Choosing a Local Development Environment For WordPress | InMotion Hosting","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:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Choosing a Local Development Environment For WordPress | InMotion Hosting","og_description":"Interested in making a custom modification to your WordPress site? You\u2019ve probably landed on a tutorial or blog post that gives you a snippet of code to add to a header or single post file. If you managed to add this code using the WordPress code editor you may be astonished to find your site Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-08-27T14:45:25+00:00","article_modified_time":"2020-09-25T19:40:02+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"Choosing a Local Development Environment For WordPress","datePublished":"2019-08-27T14:45:25+00:00","dateModified":"2020-09-25T19:40:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/"},"wordCount":550,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/","name":"Choosing a Local Development Environment For WordPress | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2019-08-27T14:45:25+00:00","dateModified":"2020-09-25T19:40:02+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/local-development-environment-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Choosing a Local Development Environment For WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/46254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=46254"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/46254\/revisions"}],"predecessor-version":[{"id":60811,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/46254\/revisions\/60811"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=46254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=46254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=46254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}