How to setup multiple WordPress sites on localhost – WAMP Server 2023

Setting up WordPress sites is very easy and simple, you have multiple options. WAMP, XAMPP, MAMP and Bitnami WordPress installer makes it simple to set up WordPress locally. Sometimes, you need to setup multiple WordPress sites on localhost for different projects.

In this video, You can see the process to set up multiple WordPress sites on localhost. In this case, I am using WAMP server for the local set up but the process is same for XAMPP and MAMP, You just need to create multiple folders/directories in the WWW directory and edit wp-config.php file.

Even though You can use a single database to set up multiple WordPress sites but I prefer to create a new database for each site.

Here is the step by step process to set up multiple WordPress sites on localhost.

  1. Download WordPress
  2. Create a new folder in WWW folder and name it wordpress2 or anything you like
  3. Extract all WordPress files in this newly created folder
  4. Visit http://localhost:8080/phpmyadmin/ and create a new database for the new WordPress site
  5. Rename wp-config-sample to wp-config.php
  6. Open wp-config.php in any text editor and add your database name, save file.
  7. Visit http://localhost:8080/wordpress2/ and complete the installation.

That’s all. You can set up as many sites as you want using the same process.

Resources

Download WAMP Server
Download WordPress


You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *