WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Create a Local WordPress Site Using XAMPP

How to Create a Local WordPress Site Using XAMPP

Last updated on September 17th, 2020 by Editorial Staff
680 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Create a Local WordPress Site Using XAMPP

Do you want to create a local WordPress site on your computer using XAMPP?

Installing WordPress on your computer helps you try out WordPress, test themes and plugins, and learn WordPress development.

In this article, we will show you how to easily create a local WordPress site Using XAMPP.

Creating local WordPress install using XAMPP

Why Create a Local WordPress Site?

Creating local WordPress sites is a common practice among developers and site owners. It allows you to test WordPress without creating an actual website on the internet.

Local websites are only visible to you on your computer. You can try different WordPress themes and plugins, test their features, and learn the WordPress basics.

If you already have a WordPress website, then you can create a local copy of your website on your computer to try out new plugin updates before implementing them on your live website.

Important: Local website will only be visible to you on your computer. If you want to make a live website, then you’ll need a domain name and WordPress hosting.

Follow the step by step instructions in our how to start a WordPress blog guide when you are ready to create a live website.

Having said that, let’s check out how to install WordPress locally on Windows, Mac, or Linux using XAMPP.

What is XAMPP?

XAMPP is a software package that includes all things you need to set up a local server environment on your computer.

In order to create a local WordPress site, you need to set up a web server software (Apache), PHP, and MySQL on your computer.

PHP is a programming language and MySQL is a database management software. Both of them are required to run WordPress.

Installing each of them separately is quite difficult for beginners. This is where XAMPP comes in.

XAMPP makes it easy for you to build WordPress websites locally. It is available for Windows, Mac, and Linux based computers.

Let’s get started by installing XAMPP and setting it up to run your local WordPress site.

Installing XAMPP on Your Computer

First, you need to visit the XAMPP website and click on the download button for your operating system.

Download XAMPP to your computer

Depending on your operating system, your installation wizard and the application interface may differ from the screenshots here. For the sake of this article, we’ll show you the Windows version of the software.

After downloading XAMPP, you will need to click and run the installer.

XAMPP set up wizard

XAMPP will ask where to install the software and which packages you’d like to install. The default settings will work for most users. Keep clicking on the ‘Next’ button to finish the setup wizard.

After finishing the wizard, check the ‘start the control panel now’ option and then click on the finish button.

Finish set up and launch XAMPP control panel

This will launch the XAMPP control panel app.

Using the XAMPP app, you can run Apache web server as your local server and MySQL as your database server. Go ahead and click on the start button next to both Apache and MySQL.

Start Apache and MySQL to launch your local server

XAMPP will now start Apache and MySQL. You may see a Windows firewall notification, it is important that you click on the ‘Allow Access’ button for both applications to run on your computer.

Allow firewall access to Apache and MySQL

Once both applications are started their names will be highlighted in Green.

Now you are ready to create a local website and install WordPress using XAMPP.

Creating a Local WordPress Site with XAMPP

First, you will need to download WordPress. Visit the WordPress.org website and click on the ‘Download WordPress’ button.

Download WordPress

After downloading WordPress, you need to extract the zip file, and you will see a wordpress folder. You need to copy this folder.

WordPress folder

Next, head over to your XAMPP installation folder.

On Windows it would be C:/Program Files/XAMPP/htdocs or C:/Xampp/htdocs folder.

On Mac, it will be /Applications/XAMPP/htdocs folder.

Paste the wordpress folder you copied earlier inside htdocs.

We recommend renaming the wordpress folder to websites or anything else. This will help you easily identify your local site.

Rename WordPress folder

Next, you need to open your favorite web browser and enter the following URL in your browser’s address bar.

https://localhost/website1/

If you renamed the WordPress folder something else, then replace website1 with your own folder name.

This will load the WordPress installation wizard and you’ll be asked to select a language. After selecting a language, click on the ‘Continue’ button.

Select language

On the next screen, you will see a notice that WordPress needs a database name, database username, password, and host information.

WordPress installation requirements

Let’s create a database for your WordPress site.

You’ll need to open a new browser tab and visit https://localhost/phpmyadmin/.

This will launch the phpMyAdmin app that comes pre-installed with XAMPP. It allows you to easily manage your databases using a simpler interface.

You would need to click on Databases, and provide a name for your new database. After that, click on the ‘Create’ button to continue.

Creating a database for your local WordPress site

Now that you have created a database, you can use it for your WordPress site.

Switch back to /localhost/website1/ browser tab and click on the ‘Let’s Go’ button.

On the next screen, you will be asked to provide your WordPress database information.

Enter the database name you created earlier. Your username is ‘root’ and you should leave the password field blank. For the database host field, you need to use localhost.

Enter your WordPress database information

Once you are done, click on the ‘Submit’ button to continue.

If you are on Windows or Linux, WordPress will now store these settings in your WordPress configuration file called wp-config.php file.

However, if you are on Mac, then it will show you the contents of the file and will ask you to create it.

You will need to create this file in your website’s root folder.

After creating the file, paste the text you copied earlier inside it. Next, you need to save the file and return back to WordPress installer to continue.

In the next step, WordPress will ask you to provide information about your website. First, enter the title you want to use for this site.

After that, you need to enter a username, password, and email address for your admin account.

Enter your local site information

Once you have filled all the information, click on the ‘Install WordPress’ button to continue.

WordPress will now run the installation and prompt you to log in once it’s done.

You can login to your website by going to /localhost/website1/wp-admin page and use the username / password that you entered during installation to login.

WordPress login page

Things to Try After Creating a Local WordPress Site

Now that you have created your local WordPress site using XAMPP, you can work on it like you would do on a live WordPress site.

Head over to Appearance menu in WordPress admin sidebar, to customize your site’s appearance or install a new theme.

Here are some great free themes that you can try.

The next thing you would want to try is WordPress plugins.

Plugins are like apps for your WordPress site and allow you to add cool features like contact form, social media buttons, eCommerce store, etc.

Need help installing plugins? See our step by step guide on how to install a WordPress plugin.

Bonus: Moving Local WordPress Site to Live Server

After working on your local WordPress site you may want to move it to a live server to make your first WordPress blog or website.

To do that you’ll need a domain name and web hosting account. Normally, a domain name costs $14.99 and website hosting start from $7.99 per month.

That’s too much if you are just starting out.

Luckily, Bluehost is offering WPBeginner users a free domain name with generous discount on hosting. Basically, you can get started for $2.75 per month.

→ Click Here to Claim This Exclusive Bluehost Offer ←

For more hosting recommendations, take a look at our complete WordPress hosting guide.

Once you have signed up for hosting, you can follow our step by step guide on how to move WordPress from local server to live site.

We hope this article helped you learn how to create a local WordPress site using XAMPP. You may also want to look at alternate ways to create local WordPress sites on Windows using Wampserver, and on Mac using MAMP.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

680 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

165 Comments

Leave a Reply
  1. Tife says:
    Dec 13, 2020 at 11:35 am

    Can I use local Host to develop my custom wordpress theme also.

    Reply
    • WPBeginner Support says:
      Dec 14, 2020 at 11:30 am

      You can if you would like.

      Reply
  2. priyanka says:
    Nov 2, 2020 at 7:46 am

    I’m getting this error
    Your server is running PHP version 5.6.3 but WordPress 5.5.3 requires at least 5.6.20.
    p/lease help

    Reply
    • WPBeginner Support says:
      Nov 2, 2020 at 11:56 am

      It is saying you want to upgrade the PHP you are using for your site to remove that error.

      Reply
  3. tarun says:
    Oct 30, 2020 at 6:59 pm

    I get the following error, when I run http://localhost/mysite/wp-admin/setup-config.php

    One or more database tables are unavailable. The database may need to be repaired.

    I tried to do global search for “WP-config” file in my xampp folder but just found “wp-config-sample”. though I added the below line in
    “wp-config-sample.php” file
    // define(‘WP_ALLOW_REPAIR’, true);

    not really sure what to do after that.

    Reply
    • WPBeginner Support says:
      Nov 2, 2020 at 10:11 am

      You would want to open phpMyAdmin and run the repair on all of your tables and if that does not work you would need to reach out to XAMPP’s support

      Reply
  4. tarun says:
    Oct 30, 2020 at 10:08 am

    I am not able to figure out why I am getting this strange error, though I tried to reinstall and connect several times, all I did was I tried to drop my existing database and tried to create a new wrodpress login but All I can see is the following error

    One or more database tables are unavailable. The database may need to be repaired.

    Reply
    • WPBeginner Support says:
      Oct 30, 2020 at 10:26 am

      You would want to try to repair your database, you can also use method 3 in our article below:

      https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

      Reply
  5. Mohsin Zubair says:
    Oct 13, 2020 at 4:15 am

    Hi Sir, I hope you are doing well. I am facing this error while creating data base.

    Error
    MySQL said: Documentation

    Cannot connect: invalid settings.
    phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

    Reply
    • WPBeginner Support says:
      Oct 13, 2020 at 9:39 am

      You would want to check your configuration settings to see if it is set incorrectly.

      Reply
  6. David says:
    Oct 9, 2020 at 3:39 am

    This is exactly what I have been looking for: a local testing server to develop a website without signing up to a plan/paid service first.

    The explanations are brilliant and easy to follow. It’s genius! Many thanks.

    Reply
    • WPBeginner Support says:
      Oct 9, 2020 at 10:42 am

      You’re welcome, glad our guide was helpful :)

      Reply
  7. Ray Silva says:
    Oct 6, 2020 at 11:36 pm

    I installed wordpress. Then I put the wordpress folder in xampp’s htdocs folder. When I go to localhost on my browser, I get sent to the xampp dashboard and welcome to xampp page.

    Reply
    • WPBeginner Support says:
      Oct 7, 2020 at 10:22 am

      You may want to try localhost/foldername where foldername is the name of the folder where you placed WordPress to see if that is how it is currently set up.

      Reply
  8. Hussain Abbas says:
    Sep 28, 2020 at 1:28 pm

    Hi

    My url to login to WordPress dashboard is coming as “/localhost/sitename/wordpress/wp-admin” whereas as per the above instructions it should be “/localhost/sitename/wp-admin” .

    Would request your help to know how can I remove “wordpess” from the link.

    Thanks

    Reply
    • WPBeginner Support says:
      Sep 29, 2020 at 9:05 am

      For that, you installed the site in a folder named WordPress, if you are just starting out you can reinstall the site without the WordPress folder.

      Reply
  9. muhammad waqar says:
    Sep 17, 2020 at 3:43 pm

    easy and good tutorial for beginners

    Reply
    • WPBeginner Support says:
      Sep 18, 2020 at 10:13 am

      Glad you found our guide helpful :)

      Reply
  10. Darren Howes says:
    Sep 2, 2020 at 9:39 am

    Hi,
    Great instructions, complete novice, everything is working apart from when I try to add/upload images I get the the message

    Unable to create directory wp-content/uploads/2020/09. Is its parent directory writable by the server?

    I am working on a mac, any ideas on how to solve this?

    Regards
    Darren

    Reply
    • WPBeginner Support says:
      Sep 2, 2020 at 11:15 am

      You would need to navigate to your XAMPP folder, right-click, and modify your sharing for that folder so that it can be updated.

      Reply
  11. marni says:
    Aug 23, 2020 at 8:38 pm

    When setting up WordPress I used “admin” as the user name and changed the password supplied by WordPress. As a precaution I copied the supplied password. I cannot log in with either password (no typing errors).

    Reply
    • WPBeginner Support says:
      Aug 25, 2020 at 10:33 am

      You should be able to force reset the password using the database method in our guide below:
      https://www.wpbeginner.com/beginners-guide/how-to-change-your-password-in-wordpress/

      Reply
  12. gaurav sachan says:
    Aug 19, 2020 at 3:04 pm

    everything is done but database is not created so please me that why are not creting database in my php

    Reply
    • WPBeginner Support says:
      Aug 20, 2020 at 10:06 am

      You would need to manually create the database in the phpMyAdmin interface

      Reply
  13. Dimitris says:
    Aug 11, 2020 at 3:21 pm

    Hello after following the procedure after the following step:

    Next, you need to open your favorite web browser and visit localhost/website1. You will see a page like this:

    I get this message on the screen.

    Warning: require_once: failed to open stream: No such file or directory

    Reply
    • WPBeginner Support says:
      Aug 12, 2020 at 9:50 am

      You may need to try unzipping the WordPress files again, the most common reason for this issue is covered in our article below:

      https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-failed-to-open-stream-error

      You can follow our guide for manually updating your site and you wouldn’t need to use FTP to readd the files, our guide on this can be found below:

      https://www.wpbeginner.com/beginners-guide/ultimate-guide-to-upgrade-wordpress-for-beginners-infograph

      Reply
  14. Muhammad Kamran Khan says:
    Jul 26, 2020 at 11:27 am

    after all these setting localhost/website1 started working. after shut down and restarted my laptop now when i go to localhost/website1/wp-admin/ error message came : This site cant be reached. localhost refused to connect.

    Reply
    • WPBeginner Support says:
      Jul 27, 2020 at 1:25 pm

      You would want to ensure XAMPP is running to be able to see your site :)

      Reply
  15. dilshan says:
    Jul 12, 2020 at 5:35 am

    This is really helpful because sometimes I want test some plugins but i dont want to install them to my website. I can try them in this local host site thanks to you

    Reply
    • WPBeginner Support says:
      Jul 13, 2020 at 1:30 pm

      Glad our guide was helpful :)

      Reply
  16. Osazuwa says:
    May 19, 2020 at 5:35 pm

    A very helpful tutorial.

    I have implemented them

    But on loading

    Localhost/website1

    it displays
    Parse error: syntax error, unexpected’.’ expecting ‘&’ or variable (T_VARIABLE) in C:\xampp\htcdocs\website1\wp-includes\functions.php on line 1081

    Thanks

    Reply
    • WPBeginner Support says:
      May 20, 2020 at 9:34 am

      You would want to ensure the PHP you are using is up to date for the most common reason for that error.

      Reply
  17. Julio Talaverano says:
    Apr 6, 2020 at 7:29 am

    Hi,
    Yesterday I installed XAMPP and WordPress and I worked a bit on a new page using localhost/wordpress.
    I also installed some Plugins in WordPress.
    But today when put into the browser localhost/wordpress I just get the Page I created yesterday.
    Could you please tell me how I can continue editing my page with WordPress?
    Thanks

    Reply
    • WPBeginner Support says:
      Apr 7, 2020 at 8:28 am

      If we’re understanding your question correctly, you would want to ensure XAMPP is running for your site to be visible when visiting the page.

      Reply
  18. Ronny says:
    Mar 31, 2020 at 8:11 am

    Hello,

    As always your tutorials are great. One question though. How do I make multiple localhosts using Xampp.

    Think of me as a noob the this. I’ve read a few other tutorials on the subject, but it seems they assume one would have some deeper understanding of processes.

    Reply
    • WPBeginner Support says:
      Mar 31, 2020 at 10:28 am

      You would create a folder with a different name in the htdocs folder and follow the steps under the ‘Creating a Local WordPress Site with XAMPP’ section and navigate to the new site’s folder when you want to see the other site rather than your first site.

      Reply
  19. Calvin Mutashu says:
    Feb 29, 2020 at 6:22 pm

    Thanks 4 a clear step by step guide. Keep the good work.

    Reply
    • WPBeginner Support says:
      Mar 2, 2020 at 11:32 am

      You’re welcome, glad you liked our guide :)

      Reply
  20. Anjuli says:
    Feb 9, 2020 at 11:56 pm

    Hello! My browser cannot open to localhost after putting the WordPress folder to htdocs and renaming it to website1. What should I do? Thank you.

    Reply
    • WPBeginner Support says:
      Feb 10, 2020 at 11:03 am

      If you’re returning to the site after a day, please ensure XAMPP is running on your computer for it to load porperly.

      Reply
  21. SANTOS says:
    Feb 3, 2020 at 11:07 am

    Hi, how do I take my local wordpress site to a live wordpress site with a domain name?

    Reply
    • WPBeginner Support says:
      Feb 4, 2020 at 8:44 am

      Once you purchase hosting with a domain name, you would follow our guide here:
      https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/

      Reply
  22. Zaid says:
    Jan 10, 2020 at 2:23 pm

    I have a question if i am customizing my localhost wordpress site and my pc turned off. I will loss my site..?

    Reply
    • WPBeginner Support says:
      Jan 13, 2020 at 11:27 am

      No, as long as you save your changes those saved changes will remain the next time you pull up your local installation

      Reply
  23. Carla says:
    Dec 27, 2019 at 6:05 am

    Guys, Just wanted to say thank you for this post! I successfully implemented a localhost on my computer thanks to your clear, step-by-step process outlined in the post! So excited to get practising my wp skills on this new installation!

    Reply
    • WPBeginner Support says:
      Dec 27, 2019 at 9:12 am

      Awesome, glad our guide could help get you set up :)

      Reply
  24. Victor says:
    Dec 19, 2019 at 8:41 pm

    Great job!! Is there a way, or a tutorial to transfer an existing website to this service ? This one deals with a brand new one. I have a website, and I’d love to add it to XAMPP! Thanks ! :)

    Reply
    • WPBeginner Support says:
      Dec 23, 2019 at 10:35 am

      For that, you would want to take a look at our article here:

      https://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/

      Reply
  25. Blessings Chibisa says:
    Dec 3, 2019 at 11:46 pm

    Guys I installed WordPress on a local machine. Am using xamp server I created a database but they is a problem in connection of WordPress and the database…. What should I do ?
    Help me pliz

    Reply
    • WPBeginner Support says:
      Dec 4, 2019 at 10:38 am

      For an error with your database connection, you would want to take a look at our article here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

      Reply
  26. Vikas says:
    Nov 22, 2019 at 9:46 pm

    Great artice. It worked perfectly. I am a new learner. Sir could you guide me about How I could run multiple local sites using xampp.

    Any help will be aporeciated.

    Reply
    • WPBeginner Support says:
      Nov 25, 2019 at 10:30 am

      You would want to create a new folder for the next site and then you should be able to follow the directions in the article to create a new database and site.

      Reply
  27. AASIMA says:
    Nov 5, 2019 at 6:54 am

    SIR.
    I successfully followed your instructions to make a website on the localhost. but the next day it doesn’t open and showing some error?

    Reply
    • WPBeginner Support says:
      Nov 5, 2019 at 10:43 am

      You would want to be sure XAMPP is running to see your local site

      Reply
  28. Mate says:
    Oct 1, 2019 at 8:46 am

    Good guys

    I have my website running on local xampp server on windows 10 system I want to move to my new Mac pro computer how do I do it? thanks.

    Reply
    • WPBeginner Support says:
      Oct 1, 2019 at 10:03 am

      You would follow the steps in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/

      Reply
  29. Keith says:
    Sep 29, 2019 at 11:59 am

    I followed your directions and it was great, thanks.

    I am trying to upload the AVADA theme that I have install previously on Hostgator and it worked.

    It is 6mb and a zip file.

    When I try to add this theme I get this message: “The uploaded file exceeds the upload_max_filesize directive in php.ini”.

    Where am I going wrong? Thank You,

    Reply
    • WPBeginner Support says:
      Sep 30, 2019 at 10:36 am

      You may want to ensure that there isn’t the theme files in what you’re uploading. If it’s only the theme’s files then you can update your upload size on your XAMPP site using the methods in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/

      Reply
  30. Deepak Singh says:
    Sep 7, 2019 at 11:59 am

    Very helpful post, thanks for this..

    Reply
    • WPBeginner Support says:
      Sep 9, 2019 at 9:30 am

      You’re welcome :)

      Reply
  31. Mary says:
    Sep 3, 2019 at 6:36 pm

    Good evening, thanks for the great work done here. I have followed these steps and I am unable to log in to my website. All I am getting is this. I am feed up already. Connection for controluser as defined in your configuration failed.

    Reply
    • WPBeginner Support says:
      Sep 4, 2019 at 10:26 am

      You would want to reach out to XAMPP’s support as there are multiple possible reasons from mysql not running to needing to reinstall xampp

      Reply
  32. Sam Arora says:
    Aug 20, 2019 at 2:27 am

    Your site is so much helpful, had a great lesson here

    Reply
    • WPBeginner Support says:
      Aug 20, 2019 at 10:18 am

      You’re welcome, glad our site could be helpful :)

      Reply
  33. Kashif Ch says:
    Aug 13, 2019 at 12:16 pm

    Assalam o Alikum Sir!
    Currently, I am learning WordPress and want to build different websites like membership website, LMS, e-commerce store for learning best practices.
    Can we create two different websites using localhost or any other free hosting?

    Reply
    • WPBeginner Support says:
      Aug 14, 2019 at 10:39 am

      For a local installation, you should only need to create a new database and folder for the second site, for free hosting you may want to first take a look at our page and the warning at the beginning here: https://www.wpbeginner.com/showcase/best-free-website-hosting-compared/

      Reply
  34. Xander says:
    Jul 18, 2019 at 2:16 am

    I followed the steps and it worked perfectly yesterday.

    This morning, trying to connect to the localhost I received the following error:

    “This site can’t be reached localhost refused to connect.
    Search Google for localhost wordpress jack admin
    ERR_CONNECTION_REFUSED”

    Reply
    • WPBeginner Support says:
      Jul 18, 2019 at 10:17 am

      Is your XAMPP running when you try to connect to your localhost?

      Reply
  35. Samar Jamil says:
    Jun 11, 2019 at 6:06 am

    Thanks for sharing!

    Reply
    • WPBeginner Support says:
      Jun 11, 2019 at 10:42 am

      Glad you liked the article :)

      Reply
  36. Daniyal says:
    Jun 6, 2019 at 12:52 am

    Hello there,

    I’ve followed all the steps given in the article but stuck when I click “Install WordPress”, it gives me an error > “The site is experiencing technical difficulties”

    after setting Site Title, username, password, email.

    Can you help me, please :)

    Reply
    • WPBeginner Support says:
      Jun 6, 2019 at 10:51 am

      There are a few possible reasons for that error message. To start resolving it you would want to go through the options in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/

      Reply
  37. haley says:
    May 3, 2019 at 12:13 pm

    Thank you for this article. I am on the step where I need to open up the local site in a web browser but when I do, I get an error page saying “the local host has refused to connect.” I’m guessing I messed up on one of the former steps but I don’t know which one. I’m working on a Mac.

    Any guidance would be appreciated!

    Reply
    • WPBeginner Support says:
      May 6, 2019 at 1:14 pm

      If you are returning to the site you would want to ensure xampp is running when trying to view your local site

      Reply
  38. Charlie McCormack says:
    Apr 3, 2019 at 7:03 pm

    Hi
    Thanks for this. Installation went 100%
    I am trying to test Divi which has to be loaded from a zip file
    I get this when I try to install it from aperance/upload theme
    The uploaded file exceeds the upload_max_filesize directive in php.ini.
    Any solutions would be great
    Charlie

    Reply
    • WPBeginner Support says:
      Apr 4, 2019 at 11:13 am

      You could increase the maximum upload size using:
      https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
      Another option would be to add the unziped theme folder where your themes are:
      https://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-theme/

      Reply
      • Charlie McCormack says:
        Apr 4, 2019 at 5:24 pm

        Thanks for your reply
        I cannot log in on the FTP maybe because its on a local drive
        I am trying to load the theme the way you say
        and still get the error.I
        I bought a new domain name so will try to load it live and work on it like that
        Thanks again
        Charlie

        Reply
        • WPBeginner Support says:
          Apr 5, 2019 at 11:02 am

          On a local site, you can use your built-in file manager rather than FTP to add the folder to your WordPress site :)

  39. YINGLI says:
    Mar 12, 2019 at 5:01 am

    Hi, thanks for writing this article! :)

    I have a question though:
    I am at the step where I have to fill in a site title, username, password and email address for my admin account for WordPress. May I know whether the information that I use here should be the same as the information that I would use for my actual online WordPress account? I have an existing unlaunched WordPress site through Bluehost.

    Thanks so much! :)

    Reply
    • WPBeginner Support says:
      Mar 12, 2019 at 11:06 am

      It is not required but if you’re creating a local site to test then it may be a good idea to set that as the same.

      Reply
  40. Pooja says:
    Feb 21, 2019 at 12:34 am

    Thanks for help , best artical

    Reply
    • WPBeginner Support says:
      Feb 21, 2019 at 10:24 am

      You’re welcome :)

      Reply
  41. Karen says:
    Feb 15, 2019 at 8:39 am

    thanks for the great video. question. am i understanding the process correctly? 1) set up a test site (mysite1) But should i also set up a database/wp install for each client website that I build (and maintain)? I’m guessing yes. :)

    Reply
    • WPBeginner Support says:
      Feb 15, 2019 at 10:34 am

      Yes, you would want a different install and database for each local site :)

      Reply
  42. Miso says:
    Jan 23, 2019 at 3:04 am

    Great job, simple, straightforward. That’s exactly what a beginner, like me needs.

    Reply
    • WPBeginner Support says:
      Jan 23, 2019 at 1:39 pm

      Thank you, glad our tutorial was helpful :)

      Reply
  43. God's Son says:
    Jan 2, 2019 at 11:47 am

    Hi,i am very glad and grateful to you for this article. It was very simple and comprehensive,the photo illustrations helped me a lot. You are a great teacher,i hope i will be able to learn and share my knowlege with others like you soon,thanks.

    Reply
    • WPBeginner Support says:
      Jan 2, 2019 at 2:45 pm

      Happy our articles can simplify this process for you :)

      Reply
  44. Aftab Hussain says:
    Dec 29, 2018 at 3:04 pm

    Thanks for such a nice guideline. I have successfully install wordpress on my local computer by the help of this post.

    Reply
    • WPBeginner Support says:
      Dec 31, 2018 at 2:57 pm

      Glad our article could help :)

      Reply
  45. demola says:
    Dec 18, 2018 at 2:36 am

    pls how can i move my xamp wordpress site to another computer

    Reply
    • WPBeginner Support says:
      Dec 19, 2018 at 11:27 am

      You would need to install XAMPP on the other computer and then you should be able to use the method in our guide: https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/

      Reply
  46. Jon V says:
    Nov 9, 2018 at 7:54 pm

    I’m trying to follow these instructions, I’ve downloaded both required files, but I do not get an htdocs folder within my applications with XAMPP. Am I doing something wrong?

    Reply
  47. Amrit prasad phuyal says:
    Oct 29, 2018 at 7:22 am

    too sloww…. any wat to speed up.

    i am using mozillla browser

    Reply
  48. André Bruwer says:
    Oct 22, 2018 at 5:26 am

    Hi there WPBEGINNER SUPPORT

    Great article thank you :)

    I was wondering… is it better to develop a wp website for a client live or better to build it locally then transfer it to the hosted wp site with duplicator or something similar?

    Any advise would be greatly appreciated. Can’t figure this one out.

    Thanks
    André

    Reply
    • WPBeginner Support says:
      Oct 30, 2018 at 2:28 pm

      Hi André Bruwer,

      It depends on developers own preferences. If a site hasn’t been live before then they can work on it using a maintenance mode or coming soon plugin. However, more developers prefer to work locally and then transfer a website to a live server.

      Reply
      • demola says:
        Dec 18, 2018 at 2:33 am

        pls i want to move my wordpresite from my laptop to another laptop i use xamp as a local server

        Reply
  49. Thomas James Keely says:
    Oct 16, 2018 at 3:43 pm

    I was up and running within minutes. Thank you so much!!!

    Reply
  50. Chaitra says:
    Sep 17, 2018 at 5:58 am

    Hi, I am getting following error when I connect to localhost/website1
    You don’t have permission to access /website1/ on this server.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

    Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
RafflePress - WordPress Giveaway and Contest Plugin
RafflePress
Giveaway and Contest Plugin for WordPress. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
Churnly Coupon
Get 30% OFF on Churnly WordPress automated churn-busting plugin.
AccessPress Themes
AccessPress Themes Coupon
Get 15% off on AccessPress Themes collection of premium WordPress themes and plugins.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.