Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Alexandra Cianciara2,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.
Liam ClarkeTreehouse Moderator 19,872 Points
To have multiple sites locally you have 2 options:
- 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
- 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:
connect git and your hosting service (this is usually an additional cost)
FTP, this can be done by getting FTP software and copying and moving your local install
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