{"id":162099,"date":"2017-01-23T13:00:40","date_gmt":"2017-01-23T13:00:40","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=162099"},"modified":"2017-01-23T02:06:12","modified_gmt":"2017-01-23T02:06:12","slug":"development-environment-desktopserver","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/development-environment-desktopserver\/","title":{"rendered":"DesktopServer: How to Set Up the Easiest Development Environment for WordPress"},"content":{"rendered":"<p>Setting up WordPress in a localhost environment can save you a ton of time if you frequently test\u00a0new designs and go bug hunting, but with its super easy 5 minute setup, DesktopServer definitely tops that.<\/p>\n<p>Its quick setup time makes it a winner for seasoned developers who want to get a new site up and running quickly, but it&#8217;s also perfect for beginners thanks to its intuitive user experience.<\/p>\n<p>I don&#8217;t always test locally, but when I do, I use DesktopServer.\u00a0Even if you prefer using <a href=\"https:\/\/wpmudev.com\/blog\/setting-up-xampp\/\" target=\"_blank\">XAMPP<\/a>, <a href=\"https:\/\/wpmudev.com\/blog\/how-to-set-up-wordpress-locally-for-pcwindows-with-wamp\/\" target=\"_blank\">WAMP<\/a> or <a href=\"https:\/\/wpmudev.com\/blog\/develop-wordpress-locally-mamp\/\" target=\"_blank\">MAMP<\/a> or testing on a live site, DesktopServer could become your new go-to for local development.<\/p>\n<p>Today, I&#8217;ll show you how you can quickly set up DesktopServer for the local development of single installs of WordPress. I&#8217;ll also show you how to upgrade to the premium version and install a Multisite network, import your live site, then deploy your site lickety-split.<\/p>\n<h2>What is DesktopServer?<\/h2>\n<p>DesktopServer is a program created by <a href=\"https:\/\/serverpress.com\/\" rel=\"noopener\" target=\"_blank\">ServerPress<\/a> that you can install on your Mac or PC to create\u00a0WordPress websites on your computer without online website hosting.<\/p>\n<p>When you create a new installation of WordPress with this software, a virtual server is created on your computer. The new site you create operates without requiring access to the internet and can only be accessed from your computer.<\/p>\n<p>You can develop and test your site privately without having to worry about interrupting your visitors with downtime should an error occur.<\/p>\n<p>The best part is that setting up the software takes mere minutes and it takes even less time to install a new WordPress site. In a few clicks, it&#8217;s all set up and you can access it through your browser with a custom, fictional\u00a0domain and <em>.dev<\/em> TLD such as <em>your-site.dev<\/em><\/p>\n<p>The free version lets you create up to three new single installations of WordPress in a few clicks, while the premium version includes Multisite and supports importing your site, direct deployment to your live server and many more features. You can also create as many WordPress sites or networks as your computer&#8217;s storage space permits.<\/p>\n<h2>Installing Desktop Server<\/h2>\n<p>To get started with DesktopServer, go to the <a href=\"https:\/\/serverpress.com\/\" rel=\"noopener\" target=\"_blank\">ServerPress website<\/a> and click <strong>Download<\/strong> at the top of the page or the <strong>Get Started for Free<\/strong> button.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/serverpress-site.png\" alt=\"The ServerPress website\" width=\"670\" height=\"400\" \/><figcaption class=\"wp-caption-text\">Download DesktopPress from the ServerPress website.<\/figcaption><\/figure>\n<\/div>\n<p>On the next page, scroll down toward the bottom and choose either a premium or free license. If you choose the premium option, you can check out and download the software with all the bells and whistles included.<\/p>\n<p>I&#8217;m going to choose the free license for now and upgrade later.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-download.png\" alt=\"DesktopServer download page\" width=\"670\" height=\"300\" \/><figcaption class=\"wp-caption-text\">Choose your license and download DesktopServer onto your computer.<\/figcaption><\/figure>\n<\/div>\n<p>After clicking the <strong>Free\u00a0\u2013 Add to Cart<\/strong> button, checkout. Keep in mind that you won&#8217;t be charged anything and you also aren&#8217;t going to need to enter any payment information. All you need to enter is your basic information such as your name and email so that you can access your free account later to download DesktopServer again in case you reformatted your computer or replaced it altogether.<\/p>\n<p>Finish by clicking the <strong>Purchase<\/strong> button and you can download a copy of DesktopServer from there by clicking on the link for the latest version that correlates to the operating software you use.<\/p>\n<p>After you download a copy to your computer, DesktopServer installs just like any other program. For Windows, be sure to uncompress the ZIP file and run the installer that&#8217;s included in the unpacked folder.<\/p>\n<p>Once you start going through the installation wizard, you&#8217;re asked to choose the type of installation you want. Choose <strong>New DesktopServer Installation<\/strong>, then click <strong>Continue<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-installation.jpg\" alt=\"The installation wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose the free version of DesktopServer and continue the installation.<\/figcaption><\/figure>\n<\/div>\n<p>The installation process continues after that and when it&#8217;s done, click <strong>Finish<\/strong>.<\/p>\n<h2>Creating a Local a WordPress Site<\/h2>\n<p>Locate DesktopServer on your computer and open it to create your first virtual server and WordPress site. You can find DesktopServer in the <strong>Applications &gt; XAMPP<\/strong> folder for Macs and the <strong>xampplite<\/strong> folder in your <strong>Program Files<\/strong> for Windows.<\/p>\n<p>On the first screen, be sure to keep the <strong>Yes. Restart DesktopServer with privileges<\/strong> option selected, then click <strong>Next<\/strong>. DesktopServer needs to run with administrator permissions in order to create a virtual server.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-privileges.jpg\" alt=\"Wizard screen to start DesktopServer\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Start DesktopServer with administrator privileges to create a WordPress installation.<\/figcaption><\/figure>\n<\/div>\n<p>On a Mac, you need to confirm this by entering your computer&#8217;s password. On Windows, you should see a prompt asking you if you meant to give administrator privileges and you can click <strong>Yes<\/strong> to continue.<\/p>\n<p>On the next screen, start Apache and MySQL by leaving the default setting selected once again. Click <strong>Next<\/strong> to continue to the final stretch of the WordPress installation process.<\/p>\n<p>Keep in mind that if you&#8217;re using a public or unsecured WiFi connection, you should turn on your computer&#8217;s firewall if it&#8217;s not already enabled. This helps ensure privacy and security while you work on your site.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-apache-mysql.jpg\" alt=\"DesktopServer setup wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Select the option to start Apache and MySQL.<\/figcaption><\/figure>\n<\/div>\n<p>It takes a minute for the virtual server to be created, but when it&#8217;s complete, click <strong>Next<\/strong>.<\/p>\n<p>You should see a familiar screen, but instead of choosing the first option this time around, choose\u00a0<strong>Create a new development website<\/strong>,\u00a0then click\u00a0\u2013 you guessed it\u00a0\u2013 the <strong>Next<\/strong> button.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-create-site.jpg\" alt=\"Wizard screen to create new site\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Click the <strong>Next<\/strong> button to create a new WordPress installation.<\/figcaption><\/figure>\n<\/div>\n<p>Enter a name for your site. It can be anything, but it does help to choose something descriptive so you can easily distinguish each of your test sites.<\/p>\n<p>If you decide you don&#8217;t want to install WordPress, you can click the WordPress version field to select a blank site. I&#8217;m going to choose a WordPress installation. If you don&#8217;t see the latest version in the field, don&#8217;t worry because you can update your site once the installation is complete.<\/p>\n<p>You can optionally click browse to choose another location for your site on your computer. Otherwise, click <strong>Create<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-create-wp-site.jpg\" alt=\"Wizard screen to install WordPress\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Enter a fictional domain for your site along with a path on your computer.<\/figcaption><\/figure>\n<\/div>\n<p>After about a minute, your site should be created and you can click the <strong>Next<\/strong> button when you see &#8220;Done!&#8221; displayed.<\/p>\n<p>Click the link that appears. It directs to the WordPress install script for your new local site.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-install-link.jpg\" alt=\"The wizard displaying the WordPress installation script link.\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Finish by running through the WordPress install script.<\/figcaption><\/figure>\n<\/div>\n<p>Your site should load in your browser where you can finish the WordPress installation as you normally would. Choose a language, click <strong>Continue<\/strong>, then enter your site&#8217;s name, username, password and email. Click <strong>Install WordPress<\/strong> to finish creating your local site.<\/p>\n<div  class=\"wpdui-pic-large   \" >\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364 size-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/wp-install-script-large.png\" alt=\"WordPress install script\" width=\"1364\" height=\"400\" \/><figcaption class=\"wp-caption-text\">Install WordPress and you&#8217;re set to start testing locally.<\/figcaption><\/figure>\n<\/div>\n<p>The setup is complete. Log in if you&#8217;re not already redirected to your admin dashboard and start testing on your local site.<\/p>\n<h2>Upgrading for Multisite<\/h2>\n<p>Since the free version of DesktopServer doesn&#8217;t come with Multisite support, I&#8217;m going to upgrade to premium so I can create a network.<\/p>\n<p>To upgrade, go back to the <a href=\"https:\/\/serverpress.com\/\" rel=\"noopener\" target=\"_blank\">ServerPress<\/a> website and click the <strong>Download<\/strong> button toward the top of the page as described earlier. Select the premium licence option and checkout.<\/p>\n<p>Enter your information and when the process has completed, go to <strong>Account &gt; Your Account<\/strong> in the menu. Click on the <strong>Downloads<\/strong> tab and find <strong>DesktopServer Premium<\/strong> on the list. Click on the latest version for the operating software you have and download it to your computer.<\/p>\n<div  class=\"wpdui-pic-large   \" >\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364 size-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-download-premium.png\" alt=\"Download page\" width=\"1364\" height=\"400\" \/><figcaption class=\"wp-caption-text\">Download DesktopServer premium and run the installer.<\/figcaption><\/figure>\n<\/div>\n<p>For Windows, uncompress the ZIP folder and run the installer. The upgrade process is the same as outlined above, except for one difference.<\/p>\n<p>Close DesktopServer if it&#8217;s open and when you&#8217;re asked to choose your type of installation, choose the <strong>Upgrade DesktopServer<\/strong> option, then click <strong>Continue<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-upgrade.png\" alt=\"Install wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose the upgrade option and finish the installation process.<\/figcaption><\/figure>\n<\/div>\n<p>When the upgrade has completed, click <strong>Finish<\/strong>.<\/p>\n<h2>Installing a Multisite Network<\/h2>\n<p>Open DesktopServer and run through the site setup wizard as described above. You may notice there are a few more options available once you start Apache and MySQL.<\/p>\n<p>Select <strong>Create a new development website<\/strong>, then click <strong>Next<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-new-site.jpg\" alt=\"DesktopServer install wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose the option to create a new development website.<\/figcaption><\/figure>\n<\/div>\n<p>The options here are similar to the free version. Fill in the fields as described earlier and also be sure to select the <strong>Allow Multisite Network<\/strong> option, then click <strong>Create<\/strong>.<\/p>\n<p>Keep in mind that if you want a sub-domain install, you should omit the <code>www.<\/code> portion of the domain in the configuration.Otherwise, your site URLs would look similar to <em>site1.www.example.dev<\/em> and <em>site2.www.example.dev<\/em>. If you&#8217;re okay with that, then you can leave the domain as is in the settings.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-allow-ms.jpg\" alt=\"Install wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose to allow Multisite and click <strong>Create<\/strong>.<\/figcaption><\/figure>\n<\/div>\n<p>When you see the &#8220;Done!&#8221; message, click <strong>Next<\/strong>. On the next screen, click the link to open your browser to run the WordPress install script. Follow the same steps as outlined above for a single installation of WordPress.<\/p>\n<p>Once you reach the admin dashboard of your new local development site, go to <strong>Tools &gt; Network Setup<\/strong> and choose a sub-domain or sub-directory install, enter a title and administrator email for your network, then click <strong>Install<\/strong>.<\/p>\n<div  class=\"wpdui-pic-large   \" >\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364 size-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/network-setup.png\" alt=\"The Network Setup page\" width=\"1364\" height=\"400\" \/><figcaption class=\"wp-caption-text\">Install the Multisite Network as you normally would.<\/figcaption><\/figure>\n<\/div>\n<p>When the next page is displayed that includes code to add to your <em>wp-config.php<\/em> and <em>.htaccess<\/em> files, go\u00a0to your computer files and locate your site in the directory that&#8217;s displayed on the Multisite network setup page.<\/p>\n<p>Edit your <em>wp.config.php<\/em> and <em>.htaccess<\/em> files as described, then save the files.<\/p>\n<p>If you don&#8217;t see your <em>.htaccess<\/em> file in the indicated folder, you need to dig into your computer&#8217;s settings so that all file types appear.<\/p>\n<div  class=\"wpdui-pic-large   \" >\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364 size-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/enabling-network.png\" alt=\"Network setup page after installing Multisite\" width=\"1364\" height=\"400\" \/><figcaption class=\"wp-caption-text\">You can locate the files you need to edit by looking in the path displayed on the <strong>Enabling the Network<\/strong> page.<\/figcaption><\/figure>\n<\/div>\n<p>Once your files are edited, you can go back to your local Multisite, refresh the page and log in.<\/p>\n<p>Now, your new local Multisite network is all set up and ready to go.<\/p>\n<h2>Accessing All Your Sites and Database<\/h2>\n<p>You can access a list of all your sites, their admin dashboards and databases through DesktopServer. Start it up and choose the <strong>Yes. Restart DesktopServer with privileges<\/strong> option, then click <strong>Next<\/strong>.<\/p>\n<p>Choose <strong>Yes. Restart Apache and MySQL services<\/strong> and click <strong>Next<\/strong> on the next screen. Click the <strong>Sites<\/strong> button on the bottom left-hand corner of the window.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-sites-button.jpg\" alt=\"DesktopServer window\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Click on <strong>Sites<\/strong> to access all your local WordPress websites that you previously created.<\/figcaption><\/figure>\n<\/div>\n<p>Your browser should open with a list of your sites and buttons you can click to access your admin dashboard, database and front end for each of your sites.<\/p>\n<p>Every time you need to access your local WordPress site to continue working on it, this is how you can find them. You won&#8217;t be able to access them in your browser without running DesktopServer first.<\/p>\n<div  class=\"wpdui-pic-large   \" >\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364 size-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktop-server-site-list.png\" alt=\"DesktopServer site list page\" width=\"1364\" height=\"400\" \/><figcaption class=\"wp-caption-text\">You can access a list of your local sites through DesktopServer.<\/figcaption><\/figure>\n<\/div>\n<h2>Importing your Live Site<\/h2>\n<p>If you have a premium DesktopServer license, you&#8217;re able to import your live site to your local one. If you have a free license, you can use <a href=\"https:\/\/wpmudev.com\/project\/snapshot\/\" target=\"_blank\" rel=\"noopener\">Snapshot Pro<\/a> to import your site by creating a backup of your live site, then restoring it on your local WordPress installation. This also works if you have a premium DesktopServer license as well.<\/p>\n<p>With the premium version of DesktopServer, you can import your live site by first exporting it with plugins such as:<\/p>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/duplicator\/\" rel=\"noopener\" target=\"_blank\">Duplicator<\/a><\/li>\n<li><a href=\"https:\/\/ithemes.com\/purchase\/backupbuddy\/\" rel=\"noopener\" target=\"_blank\">BackupBuddy<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/backwpup\/\" rel=\"noopener\" target=\"_blank\">BackWPup<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/backupwordpress\/\" rel=\"noopener\" target=\"_blank\">BackUpWordPress<\/a><\/li>\n<li><a href=\"https:\/\/infinitewp.com\/\" rel=\"noopener\" target=\"_blank\">InfiniteWP<\/a><\/li>\n<li><a href=\"https:\/\/managewp.com\/\" rel=\"noopener\" target=\"_blank\">ManageWP<\/a><\/li>\n<\/ul>\n<p>Once a ZIP file has been generated by one of these plugins, you can fire up DesktopServer to start importing.<\/p>\n<p>After restarting DesktopServer with privileges and starting Apache and MySQL as described earlier on, choose the <strong>Export, import or share a website<\/strong> option on the screen that follows, then click <strong>Next<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-export-import.jpg\" alt=\"DesktopServer wizard\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose the last option to import your local site.<\/figcaption><\/figure>\n<\/div>\n<p>On the next screen, select\u00a0<strong>Import an existing WordPress website archive<\/strong>\u00a0and click <strong>Next<\/strong> once again.<\/p>\n<p>You include the backup you made of your live site on the next screen. Browse for the ZIP archive of your site on your computer and select it, then enter a fictitious domain you want to use for your local test site.<\/p>\n<p>You can also optionally choose a different path for your site&#8217;s root folder on your computer if you want. When you&#8217;re ready to start the import, click <strong>Next<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-importing.jpg\" alt=\"Importing screen\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Browse for a ZIP archive of your site, choose a destination and start the import.<\/figcaption><\/figure>\n<\/div>\n<p>When you see the importing process has completed, click \u2013 say it with me \u2013\u00a0<strong>Next<\/strong>.<\/p>\n<p>On the screen that follows, you should see a link to your new test site. Click on it to open it up in your browser to make sure it all works as it should.<\/p>\n<p>You may need to update your permalinks by going <strong>Settings &gt; Permalinks<\/strong> in your admin dashboard, then clicking on <strong>Save Changes<\/strong>.<\/p>\n<p>You may also need to update your site&#8217;s <em>.htaccess<\/em> file if you customized it, especially if you added rules to limit access to your site. You can check out <a href=\"https:\/\/wpmudev.com\/blog\/htaccess\/\" target=\"_blank\">A Comprehensive Guide to Editing .htaccess for WordPress Security<\/a> for details.<\/p>\n<p>If all is well with your imported site or you need to try again, click <strong>Next<\/strong> one more time to access the importing options once again.<\/p>\n<h2>Exporting Your Local Site to Live<\/h2>\n<p>You can also deploy your local site to your live server through the same steps outlined above, though,\u00a0with one twist.<\/p>\n<p>Once you have started DesktopServer with privileges,\u00a0along with Apache and MySQL, select\u00a0the <strong>Export, import or share a website<\/strong> option. Then, on the next screen, instead of choosing to import a site, select the <strong>Export or deploy a WordPress website<\/strong> option and click <strong>Next<\/strong>.<\/p>\n<p>Select the local site you want to export from the drop down box, then enter the domain of the live site that&#8217;s your destination. Choose the <strong>Export to a website archive (.zip file)<\/strong> option, then click <strong>Next<\/strong>.<\/p>\n<p>This is the option I&#8217;m going to choose, but if you want to run an automatic deployment, you can select Direct deploy to an existing server and click Next. Keep in mind that this option requires you to have DesktopServer&#8217;s WordPress plugin installed, which is included with your premium licence.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-exporting.jpg\" alt=\"Exporting screen\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Choose a local site from the list and enter the domain of the live destination.<\/figcaption><\/figure>\n<\/div>\n<p>Enter the database details of your live site. You can find this information in your <em>wp-config.php<\/em> file on your live server. If you skip this step, you won&#8217;t be able to import the ZIP file that DesktopServer creates and your site won&#8217;t work.<\/p>\n<p>When you have filled out all the fields, if you have cottoned on by now, you know you need to click <strong>Next<\/strong>.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-db-info.jpg\" alt=\"Screen to enter database details\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Enter the database details of your live site, which is your exporting destination.<\/figcaption><\/figure>\n<\/div>\n<p>On the next screen, you can enter a customized name for your ZIP file and choose where that file should be stored on your computer once it has finished compressing.<\/p>\n<p>You can also keep the <strong>Encourage search engine visibility option<\/strong> checked if you want search engines to index your live site once it has been imported to your live server. If you deselect it, search engines are discouraged from indexing your site.<\/p>\n<p>You can also choose to leave the <strong>Purge post and page revisions<\/strong> option checked if you want to clean up your database a bit from all the scrap revisions for pages and posts that you may not need anymore.<\/p>\n<p>By default, your site settings are changed before DesktopServer finishes exporting your local site so that references to your fictitious <em>your-site.dev<\/em> domain are changed to the one you entered earlier on in exporting configuration. That way, you site works once you have imported it to your live site.<\/p>\n<p>If you want to customize the references that are changed, you can check the <strong>Customize scrubbing options<\/strong> box.<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/01\/desktopserver-name-zip.jpg\" alt=\"Exporting configuration screen\" width=\"670\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Enter a name for your ZIP archive and choose a destination on your computer.<\/figcaption><\/figure>\n<\/div>\n<p>When you&#8217;re happy with your selections, click <strong>Next<\/strong>.<\/p>\n<p>When the exporting process has completed, you can click <strong>Next<\/strong> to see a path listed where your exported site is located on your computer. You can click <strong>Next<\/strong> one final time to return to the main options screen to export another local site or perform a different action.<\/p>\n<p>Once you have your exported site compressed as a ZIP file, you can return to your live site and import the file with one of the backup plugins listed earlier on in this post.<\/p>\n<h2>Wrapping Up<\/h2>\n<p>Now you know how to create a local environment for WordPress with DesktopServer and you can get it setup and configured in five minutes, to boot! Now, how&#8217;s that for quick!<\/p>\n<p>The only real limitations DesktopServer has for importing or exporting your site is how much storage space you have on your computer and on your live server if you&#8217;re exporting your local site to a live one.<\/p>\n<p>Hopefully, now you can understand why I prefer DesktopServer for creating local test environments. If you decide to give it a try, you may end up agreeing with me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up WordPress in a localhost environment can save you a ton of time if you frequently test\u00a0new designs and go bug hunting, but with its super easy 5 minute setup, DesktopServer definitely tops that. Its quick setup time makes it a winner for seasoned developers who want to get a new site up and [&hellip;]<\/p>\n","protected":false},"author":54213,"featured_media":162278,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[9770,10244,10653,10789],"tutorials_categories":[],"class_list":["post-162099","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-development-2","tag-localhost","tag-staging-environment","tag-testing-environment"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/162099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/54213"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=162099"}],"version-history":[{"count":21,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/162099\/revisions"}],"predecessor-version":[{"id":219057,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/162099\/revisions\/219057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/162278"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=162099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=162099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=162099"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=162099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}