Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Installing WordPress Locally Installing WordPress Locally The WordPress Setup Wizard

Alexandra Cianciara
Alexandra Cianciara
2,465 Points

How to configure Wordpress local set up for several sites?

The video is really great and I set up the local Wordpress for 1 site. However, I'd like to build 2 or more other sites locally. How can I do the set up?

Also, once my site is ready, how do I connect to the domain and host? Ideally I'd like to move my domain. I have a site built in Wix Website Editor and bought a domain and hosting somewhere else.

Thank you

1 Answer

Hello Alexandra

To have multiple sites locally you have 2 options:

  1. You can download a new wordpress download and give the folder a different name, for example your workspace might look like this
|- wordpress-1
|- wordpress-2
|- wordpress-3

where each of the above are a completely new WordPress install with its own database table and wo-config, lik eoyu did for your first local install

  1. You can create a new database and within your wp-config point to the other database whilst keeping the same WordPress install

Personally, for each big project, I will create its own local install like option 1. If I'm just developing a new theme ill use an already existing install and database.

As for domain question, you will need to contact your hosting service to transfer your domain over from Wix, once you have done that you will set up your DNS setting (im sure your new hosting service will help with all this)

After that you have a few options, and it depends on what they offer:

  1. connect git and your hosting service (this is usually an additional cost)

  2. FTP, this can be done by getting FTP software and copying and moving your local install

  3. Manually updating with ssh.

All of the above require a bit more information on your hosting service your using so cannot go into much detail without knowing, either way, the hosting service should have a bunch of information on either of the 3 options above.

Hope this helps