I an using XAMPP and have(created) local host in my computer, but I only can work on one wordpress site now. How would I be able to have multiple wordpress sites under the same local host and can work simultaneously? I tried to add another folder, but failed to do so as I am jsut new to this.
Leave a Reply
You must be logged in to post a comment.
you just need to open a new folder under htdocs and put the wordpress files there .
One folder for each site .
Your folder structure should look like :
Or more precisely – like so :
where under each “root” folder you will have
Then , in the wordpress install, you will need to change the database prefix in
wp-config.php
then another one will be
and so on ,,
You can use unlimited installs on one DB.
It is also a good practice to change the
Authentication Unique Keys and Salts
, but not a must –I have above 90 myself – just remember to always use a different prefix .
you can acces them with
localhost/www.mysite.com/
( of course, you do not have to usewww
– it is just a convention i use to help me track the sites on local…What you’re looking for is virtual hosts, you should be able to configure xampp to respond to any number of addresses on your local machine
Check this out:
http://sawmac.com/xampp/virtualhosts/
I can guess that you have put WordPress files in the very root of htdocs. I would suggest you to make a folder named wordpress there in htdocs and in the wordpress folder you can make as many folder as you want to create new new development sites.