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.
- Download WordPress
- Create a new folder in WWW folder and name it wordpress2 or anything you like
- Extract all WordPress files in this newly created folder
http://localhost:8080/phpmyadmin/and create a new database for the new WordPress site
- Rename wp-config-sample to wp-config.php
- Open wp-config.php in any text editor and add your database name, save file.
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.