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,717 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