Sometimes it can be more convenient to work with WordPress on your local machine. However, if you’re unfamiliar with how to install WordPress locally, you might be wondering whether it’s something you can manage on your own.

The good news is that installing WordPress locally can be done in a few simple steps. Whether you want to test out new features, experiment with development projects, or build a WordPress site before pushing it live, a local WordPress install can help you do that.

In this post, we’ll share how you can install WordPress locally on Windows and Mac, using DesktopServer, XAMPP, WAMP, or MAMP.

Let’s receive started!

An Introduction to Installing WordPress Locally

Here at Kinsta, we have a staging environment that allows for easy development and testing. However, installing WordPress locally also has some advantages. For example, perhaps you’re traveling and don’t have access to Wi-Fi. If that’s the case, you may require a local install to continue working.

Additionally, when it comes to manipulating files and local editing, a local install can sometimes be faster. There is usually less setup involved to receive it up and running.

When you want to install WordPress locally, you need to receive a local AMP stack set up on your machine. In the case of WordPress, AMP stands for Apache, MySQL, PHP. These are the software needed to mimic what a managed WordPress host would be running for you on its web server.

There are a variety of methods you can use to do this. The most common options include WAMP, XAMPP, and MAMP. These are great tools and we’ll walk you through each one.

However, they are designed to work with a variety of other software and tools and can have a bit of a learning curve. Therefore, we’ll start by introducing you to DesktopServer, which was actually designed and optimized specifically for WordPress as a local AMP stack.

Keep WordPress close to home with local installation ?Click to Tweet

How to Install WordPress Locally With DesktopServer

DesktopServer is a great WordPress product by ServerPress, which can make installing WordPress locally a complete breeze:

The DesktopServer screen

You can launch a new development install in a matter of seconds with the simple click of a button. This tool also fully supports multisite and WP-CLI, and works on both Windows and Mac.

ServerPress has both a free version and a premium version, the latter costing $99.95 per year. The premium version includes a few advanced capabilities, such as:

  • Multisite support
  • Importing and exporting third-party backups
  • Deploying directly to your live site
  • Bypassing any login plugins

You can choose which version fits you best depending on your needs. If you just need to do some quick testing, the free version works well.

Step 1: Download DesktopServer to Your Computer

To install WordPress locally, you will first need to download DesktopServer from its website. There is both a Windows version and a Mac version. For this example, we will be using the Windows version.

On the website, click the Free Download button in the top right-hand corner (or Buy Premium if that’s what you prefer):

desktop server download

The ServerPress website

This will automatically begin downloading the .zip file to your computer.

Step 2: Launch the DesktopServer Installer

Once the file is done downloading, the next step is to launch the DesktopServer installer. Before you do that, unzip the file you just downloaded. This may take a few minutes to complete.

Once that’s finished, click on Install DSL:

desktop server installer

The DesktopServer Installer application

When you first launch the program, you will be prompted to restart with administrator privileges. Select Continue. You’ll then be prompted to accept the terms of services, and choose an option for your installation:

new desktopserver installation

The DesktopServer Installation window

Leave New Desktop Installation selected, then click on Continue. The installation process will begin, which can take a bit of time.

When it’s finished, it will present a popup letting you know that it’s complete. It also tells you where in your computer directory you can find the application. When you’re done, click on Finish.

Step 3: Enable Plugins and Start Apache and MySQL Services

Once the installation is complete, you can enable a multitude of different developer plugins:

enable developer plugins

The DesktopServer developer plugins screen

Here’s a quick rundown of the developer plugins you can use when you install WordPress locally. We highly recommend the bypass login and DS-CLI plugins.

  • Airplane mode: Control loading of external files when developing locally.
  • Bypass login: Allows developer bypass of login credentials, via quick selection of any of the first 100 usernames in a combobox.
  • Clean Import: Resets .htaccess, clears cache from third-party hosts
  • Debug and Trace: Forces WP_DEBUG = true, and enables cross-platform/language trace statements in PHP and JavaScript.
  • Dreamweaver Support: Enables automatic Dreamweaver project file creation, and a WYSIWYG mode when working on template files and style.css.
  • DS-CLI: This is an enhanced, cross-platform, command-line interface for professional developers. It lets you easily use CLI, Composer, Git, and PHPUnit. NodeJS and NPM are included to allow installation of GRUNT, Gulp, and other Node dependencies.
  • DS-Deploy: Used to move a site from a local DesktopServer install to a live server.
  • InnoDB Autoconvert: Convert a site’s tables to InnoDB on Create, Copy, Move, and Import operations.
  • Local Admin Color Bar: Changes the Admin bar color.
  • Mailbox Viewer: Provides quick developer offline viewing of mail delivery services.

Keep in mind that some of these options are only available with the premium version. When you’re done, select Next. You’ll then be asked if you want to start web and database services, so hit Next again.

Step 4: Create a New Development Site

When you’re done enabling plugins and starting the web and database services, the next prompt will be to select Create a new development website:

create development website

The option to create a new development website in DesktopServer

This is where the program will install WordPress for you. You’ll have to pick your site’s name, which will also be its local address. We are calling ours “testsite”, so our development URL will be “” on our local machine:

desktopserver test site

The screen to create a site name in DesktopServer

DesktopServer enables you to actually create different blueprints, making it almost like a pre-built template. In our case, however, we simply want a fresh install.

DesktopServer always has the latest version of WordPress as the default blueprint. This means you don’t have to worry about manually downloading it from the repository and unzipping it.

By default, the site’s root is located in your My Documents folder. If you’re happy with this, you can leave it as is. However, for ease of organization, we changed ours to a folder we created in the root of our C: drive called “wordpress”.

When you are ready, click on Create. You’ll then see the URL of your local WordPress install. Click on that to finish up the installation.

Step 5: Install and Configure Your WordPress Site

When you click on the link we just mentioned, your local WordPress site will open in a browser tab:

wordpress new site

A new WordPress installation setup page

After you choose your language, the next step is to give your site a title and choose a username (if you plan to make the site live later, don’t use “admin” as a username, which you can read more about in our WordPress security guide), a strong password, and your email address:

new wordpress welcome

The welcome page of a new WordPress site

When you’re done, select Install WordPress. That’s it! You just installed WordPress locally and your site is up and running. You can now browse to your local install and test away.

In our case, we’ll go to “” in our browser’s address bar. Since we selected the bypass login plugin feature during setup, there is a dropdown menu where we can select our admin and be automatically logged in. Obviously you won’t use this on a production site, but it’s super handy for a dev environment.

Additional Tips for Using DesktopServer to Install WordPress Locally

Because of how Windows handles its file permissions, you may or may not see a message upon logging in about WordPress failing to update:

wordpress update failed 768x84 1

A WordPress update failed message

To fix, this simply open up the command prompt as an administrator and run the following command within your WordPress directory folder:

attrib -s *.*
lamp permissions wordpress 768x254 1

LAMP permissions for WordPress

If you need more guidance or instruction on how to do this, you can learn more about the details on ServerPress.

To create additional WordPress sites or edit them, simply launch the DesktopServer.exe file again. You can stop and restart services, create new sites, edit them, export and import them, etc. To access phpMyAdmin, you can click on the Sites button on the bottom left:

desktopserver sites

The ‘Sites’ button in the DesktopServer application

Alternatively, you can enter “localhost” into your browser’s address bar. This will bring up the administrator interface on the localhost:

desktopserver localhost administrator

The administrator interface of the DesktopServer localhost

There, you can receive the links to all of your WordPress sites, as well as dashboard links and phpMyAdmin links.

Another awesome feature is the ability to launch WP-CLI (or DS-CLI) with a single click. If you selected the DS-CLI option during the setup process above, there will be a link for it within your dashboard. Simply click on it, and you can start firing up WP-CLI commands.

DesktopServer also includes an export feature, which allows you to export your WordPress site directly to a live site or .zip file. Note that you will need the premium version for this.

How to Install WordPress Locally on Windows Using WAMP

If you want to install WordPress locally on a Windows computer, you can also do so with WampServer, also known as WAMP. WAMP is a software that bundles Apache web server, PHP, and MySQL specifically for Windows devices. Let’s take a look at how to use it to install WordPress locally.

Step 1: Download and Install WAMP on Your Computer

The first step is to download and install the WAMP software to your computer. You can do this by visiting the WampServer website and selecting Start Using WampServer:

wampserver website

The WampServer website

This will automatically bring you to the downloads section of the site, where you will have two versions to choose from: WampServer 32 bit and WampServer 64 bit. Select the one that is recommended for your operating system.

If you’re unsure whether your OS is 32 bit or 64 bit, you can discover this information by navigating to Settings > About:

device specifications

The device specifications page on Windows

Under the Device specifications section, you will be able to find out your OS type.

Step 2: Run the Wampserver.exe File to Start the Installation

After you download the software, click on the wampserver.exe file to run the installer. This may take a minute or two.

Also, make note of where this file downloaded to, as you’ll need to revisit it later:

wamp setup

The Wamp setup window

You’ll be prompted with a series of instructions on the screen to complete the installation process.

During this process, you’ll be asked to define a web browser. You can always change this option to a browser you prefer by navigating to the Program Files of your computer.

Step 3: Create a New MySQL Database

The next step is to set up a blank MySQL database. After you launch WAMP, there will be a green icon in the bottom right-hand corner of your screen.

Click on the icon, followed by phpMyAdmin. This will automatically bring you to the login screen in your browser:

phpmyadmin login

The phpMyAdmin login page

In the username field, input “root”, leave the password field empty and then select the Go button. Next, click on Databases:

phpmyadmin databases

The Databases page of phpMyAdmin

Under the Create Databases section, you will need to name your new database. Next, click on Create. That’s it. You now have your database set up.

Step 4: Install WordPress and Extract the Files

Once you’re done creating your database, the next step is to install WordPress locally. To do this, visit and click on Get WordPress, followed by Download WordPress:

Download WordPress

The download page on

This will download a .zip file to your computer. The next step is to extract the files. Click on the folder, and select Extract All.

When that’s done, right-click on the folder and select Copy. Navigate back to the folder on your computer where you downloaded WAMP and paste the “wordpress” folder into that directory.

At this point, you can also rename the “wordpress” folder if you wish. The name of the folder will be the URL for your local WordPress install. For this tutorial, we’ll rename ours to “mytestsite”.

Step 5: Visit Your Local WordPress Site in Your Web Browser

Open your web browser and type into the search bar “http://localhost/mytestsite/”. Of course, replace “mytestsite” with whatever you named your “wordpress” folder.

The software will then present a series of prompts for you to set up your WordPress installation. You’ll select a language and review the database information (the same series of steps we discussed in the previous section). When you’re done, click on Let’s go!:

wordpress setup

The database details page of a new WordPress installation

On the next screen, you’ll enter your database information. The name will be what you called your database, the username is “root”, and you can leave the password field empty.

Next, click on the Run the installation button. Then you can name your site and create a username and password. When you’re finished, select Install WordPress. When the software is done installing, it will show you a Success! message.

After that, you can click on Log In. This will bring you to the admin login page for your WordPress site.

That’s it! You now have a local testing environment installed.

How to Install WordPress Locally on Mac Using MAMP

If you’re looking for local server software to use for a Mac computer, you might consider MAMP. MAMP is short for Macintosh, Apache, MySQL, and PHP. It’s incredibly user-friendly and easy to use.

Step 1: Download and Install MAMP on Your Computer

As with the two previous sections, the first step is to download and install MAMP on your computer. You can do this from the official MAMP website:

The MAMP download screen

The MAMP download screen

Note that while you can download and use MAMP for free, there are also premium plans available.

Step 2: Launch MAMP and Start Your Servers

Once it’s done downloading, click on the mamp.pkg file. An installation window will pop up. Select the Continue button to follow the series of prompts:

mamp installation window

The MAMP installation window

Next, navigate to Go > Applications on your computer and click on the MAMP folder:

The MAMP application folder

The MAMP application folder

Inside that folder, click on the MAMP elephant icon:

applications mamp icon

The MAMP application icon

This will open a new window. Hit Start Servers:

The MAMP start servers option

The MAMP start servers option

Once the Apache and MySQL servers launch, MAMP will automatically open the WebStart page in your browser.

Step 3: Create Your Database and Update Your User Information

Now it’s time to create a new database. On the WebStart page, select Tools > phpMyAdmin:

webstart tools phpmyadmin

Opening phpMyAdmin via the MAMP WebStart page

Once phpMyAdmin opens, click on the Databases tab. Name your database, and then select Create:

mamp create database

Creating a new database for your local MAMP site

Next, you’ll need to update the MySQL database user credentials for the default account MAMP creates for you, as you’ll need them to complete the WordPress installation process. Navigate back to the phpMyAdmin home screen, and click on the User Accounts tab.

Then, click on Edit privileges for the account with the username mamp:

database edit privileges

Editing the default MAMP phpMyAdmin user account

Select the Change password tab, enter your preferred password, and hit Go:

database change password

Changing the default MAMP phpMyAdmin account password

You can then close phpMyAdmin.

Step 4: Install WordPress and Visit Your Site from Localhost

Now, visit the website and download the latest version of WordPress. Then unzip the ‘wordpress’ folder once it’s finished downloading. Right-click on the folder and select Copy.

Navigate back to Go > Applications > MAMP on your computer, and open the htdocs folder:

mamp htdocs

The htdocs folder in the MAMP application

Inside that folder, paste your WordPress folder that you just copied. We suggest renaming it to “mytestsite” or something similar:

mamp mytestsite

Renaming the MAMP local WordPress installation

Then, browse to “http://localhost/8888/mytestsite” in a new tab. It will prompt you to input your database credentials, as well as name your site:

wordpress installation wizard

Completing the WordPress installation wizard

Once you complete the WordPress installation prompts, you’re all done! If you need more instructions on this step, you can refer to the previous section in this post.

How to Install WordPress Locally Using XAMPP

XAMPP is another popular PHP development environment you can use to install WordPress locally. You can use it for Windows, macOS, or Linux. Here, we’ll walk you through how to do it for Windows, although the process is largely the same for Mac users.

Step 1: Download and Install XAMPP on Your Computer

Visit the Apache Friends website, and next to the green Download button, select XAMPP for Windows (or whichever OS you’re using):

The Apache Friends website

The Apache Friends website

The software will automatically download to your computer. When it’s finished, click on the .exe file to launch the installer.

Note that for macOS, this will be a .dmg file. Once you open it, click on the XAMPP icon and drag it to your Applications folder.

Step 2: Choose the Components You Want to Install

After running the installer, you’ll be asked to choose the components to install. The most important ones to select are Apache, MySQL, PHP, and phpMyAdmin:

xampp setup components

The XAMPP set up components screen

You can uncheck the other components, as they are not necessary. When you’re done, click on the Next button and select which folder you want to install XAMPP on.

Click on the Next button again, ignore the Bitnami prompt, and select Next once again.

Step 3: Launch the XAMPP Control Panel and Test Your Server

On the final screen, choose to launch the XAMPP Control Panel. In the XAMPP Control Panel that opens, you can click the Start buttons next to both Apache and MySQL:

xampp control panel

The XAMPP Control Panel

After you launch them, the status should turn to green. Now it’s time to test your server. You can do this by entering “http://localhost/” into your web browser. If it works, you have successfully added XAMPP to your computer.

Step 4: Download WordPress and Create a Database

The next step is to install WordPress on your computer. You can do this by going to and clicking on Get WordPress.

When the package is finished downloading, extract the files, and then copy the folder. Next, navigate to the XAMPP folder on your computer, and locate and open the htdocs folder.

Next, create a new folder within the htdocs folder. You can name it something along the lines of “mytestsite”. Within that folder, paste the WordPress files.

Now it’s time to create your database.

Navigate back to your XAMPP control panel and select Admin next to MySQL. This will launch phpMyAdmin.

Click on Databases, then name your database and select Create (you can refer to previous sections if you need more guidance).

You can name your database whatever you want. However, we suggest keeping it simple and memorable, such as “test_db”.

Step 5: Install WordPress Locally By Visiting Your Site in Your Browser

To complete the process, you can visit “http://localhost/mytestsite” in your browser. Remember to replace “mytestsite” with whatever you named your WordPress folder.

You’ll be prompted to select a language, name your site, and fill in your database details. Then you can log into your WordPress site and start using your local environment!

Whether you’re headed to a location with limited Wi-Fi or want to quickly edit and manipulate files, a local WordPress installation can make your life easier. Check out how to do it! ?Click to Tweet


By setting up a WordPress local environment, you can test new features and develop your WordPress sites fully before taking them live. In fact, there are a variety of methods you can use to install WordPress locally on your computer.

In this article, we explained how you can do this on both Mac and Windows via a local server environment software DesktopServer, WAMP, MAMP, or XAMPP). Although the specific instructions vary depending on which tool you use, the process can be summarized in five main steps:

  1. Download and install local environment software to your computer.
  2. Open the .exe/.dmg file and run the installer.
  3. Create a blank MySQL database.
  4. Download the latest version of WordPress.
  5. Visit your test site in your browser to complete the localhost setup process.

If you enjoyed this article, then you’ll love Kinsta’s WordPress hosting platform. Turbocharge your website and receive 24/7 support from our veteran WordPress team. Our Google Cloud powered infrastructure focuses on auto-scaling, performance, and security. Let us show you the Kinsta difference! Check out our plans

Source link