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 trialJeremy Frimond
14,470 PointsLocal Hosting of Wordpress
Zac Gordon and fellow TreeHousers,
I have created the folders and setup the database information. If I want to add several different sites into my site folder do I need to repeat this process each time? for example I have billyzbubble-gum.com using the 2013theme then I create another site called suzieq.com and I use the 2012 wp theme. How do I arrange these in my sites folder?
hope this makes sense
3 Answers
Leonardo Hernandez
13,798 PointsMakes sense,
You can use the same database, but unzip wordpress files into different directories I believe. Each installation works off of one config file, what you setup during the 5 min WP(wordpress) installation.
So you have two domains, two directories, one webhost, one database, two table sets.
directory number 1 might look like this: htdocs/billyzbubblegume/allwpfolders, and directory number two: htdocs/suzieq/allwpfolders
During the WP installation, it asks for the domain i think, and DB name. Use the same db name you created.
Important! Make sure you choose a table prefix different from what is default in the installation. (wp_)
Example for above: billzbubblegume table prefix could be called 'BB_' , suzie q's table prefix cannot be "BB_", it should be "WP_" (default), or SQ_ .
It also asks for a domain, or path. You can configure domains to point to a directory in your domain manager through the webhost panel.
Make sense? Let me know !
EDIT: for table prefixes, seperate them with an underscore, the text editor here removed them for some reason. so "BB'underscore'"