Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

Installing WordPress on a Local Server Environment

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
Installing WordPress on a Local Server Environment

As you might already know you need a web host to be able to install WordPress. In this tutorial however, we’ll learn how to install WordPress locally. Having a local installation of WordPress allows us to quickly test any plugin or theme without having to worry if it’ll work on your live site or not. It is also a great way of working on your theme development while you’re on the road, as you won’t be needing an Internet connection.

Before we begin installing Worpress on our computer, make sure that you already have a local web server set up.

We have created a video tutorial for you guys to follow, so you can setup a local server environment for either PC, Mac, or Linux.

Setting up a Local Server Environment for Windows

Setting up a Local Server Environment for Mac OS X

Setting up a Local Server Environment for Linux

Once you have installed a local server on your computer by following one of the tutorials above, you are now ready to install WordPress in that local server. Follow the video tutorial below:

Installing WordPress into a Local Server

Congratulations, Now you should have WordPress installed in your local server.

DronixDronix is a web junkie who likes to learn and blog everything related to the web. He currently lives in Orlando Florida where he’s attending a local college majoring in IT. You can visit his website and follow him on Twitter.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Karsho says:

    Thanks you

  2. Ole Rugaas says:

    I have just made a backup of my wordpress to google drive and then setup a localost soultin via WAMP.
    No problem with WAMP or install of wordpress.
    Have also sett up a DB in phpMYadmin for the loclahost. namedit as the original but include _dev.
    I have downloaded the backup files to my PC and extracted the on to the WP-content folder, the respectiv plugin, them etc. to respectiv folders.
    Importet the original DB to the new DB in phpMYadmin.
    But when i do http://localhost/xxxxxxxxxxxxx_dev/wp-admin/
    I get a login page with bad graphics and when I try to logg in it takes a log taime and the directes me to the original site.

    What am I doing wrong? are there some pointers or else I need to set or change?

    • WPBeginner Support says:

      You need to change the site url and site home in wp-config.php file.

      define( 'WP_SITEURL', 'http://localhost/your-site' );
      define( 'WP_HOME', 'http://localhost/your-site' );
      • Ole Rugaas says:

        this did work. I get admin access to my localhost without redirect to original site. so far so good.
        when i now get onto the front page it looks good but when i try to maneuver on the page i get
        The requested URL /wordpress_xxxxxx/xxxxxx/ was not found on this server.
        there is possibly other pointers I need to point at my localhost as well?

  3. Tony says:

    Hey thanks for this..! I have stumbled upon a difficulty though. Everything great up till the point where I put the url/localhost part…! I get a “page not found” error. The moving of the wordpress folder was not very clear and I’m a bit confused.
    What I did was once I downloaded WP, I renamed the file “wordpresstest” and moved it into the “htdocs” of the MAMP application, (not MAMP Pro, I haven’t touched it). Then I changed the ports successfully, opened the start page, created a database called” WordPress_Test” with no probs.
    But, when I go to open the url to install wp by typing:
    http://localhost/wordpress I get a “The requested URL /wordpress. was not found on this server”. I also put the http://localhost/80/worpresstest and nothing…!
    Please, what am I doing wrong..?

    Thank you in advance for your time to reply..


  4. Zahid Ali says:

    Hi, I’ve got WAMP successfully installed however when I try to follow the steps to install wordpress I get asked for a username/ password on the phpMyAdmin screen so I can’t get in to create a databse before installing wordpress….help!

  5. Ankur says:

    Thanks for the videos, made my work so much simpler. Now i can test everything on my system before deployment

  6. Shezallthat says:

    These videos were great! I had a local server installed last year, but I struggled with the learning curve. I’m going to try this out. The only part that wasn’t clear to me was where you put the WP installation. Do you make a folder named wordpress? and where did you make that folder? Sorry, I must have rewound it 10 times, and never quite caught it..

  7. Eric says:

    All of the tutorials I have found online walk through these same steps. But no one explains how to upload/sync the local install onto a live web server. Its a continual question I see in the comments too.

    This is what I would really like to know and can’t find the answers to.

    1. I want to change themes and layout of my existing blogsite. I’ll be changing column dimension, adding widgets,etc, and need to see what everything will look like as I’m changing it around. Mine is a photography site and I have images sized to certain pixels via wp media and nextgen galleries so I need to see how these images are being affected with column changes.

    2. I have the backup buddy plugin.

    3. I want to import my full existing site to local server with MAMP. Redesign site.

    4. Upload from local to web server.

    5. Work from local and sync from there.

    The web needs a comprehensive tutorial for these needs! It would be incredible if you could provide the solution for non-developers.

    Thank you!

    • Editorial Staff says:

      Look in the Related Posts section. It should show you how to move your site from local server to a web server…

  8. mila says:

    Thanks, the install was easy with your tutorial! It all got installed successfully… but how do I go back to my WordPress Dashboard? When I enter /localhost/wordpress in the url address window it just brings the customer facing blog page… I don’t see where I can log in. Please help! (MAMP/MySQL also was installed successfully. I ran on Apple PPC). Thank you!

  9. Melinda says:

    Thanks for the great tutorial, I just tried it and it worked like a charm!

  10. ThemesPedia says:

    Very nice tutorial! Thanks! Love your website :)

  11. cerita panas says:

    its so complete tutorial :) i like its very much

    thankz dude .. RT ciipps

  12. Benjamin says:

    I’d love to see a tutorial that addresses moving a wordpress installation from a local server to a webserver.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.