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

Confused about exporting from localhost to sandbox on WordPress

I've done localhost migrations to live servers before but those were for test domains on 000webhost when I was first getting the hang of making websites in general.

This time I made a site for someone who already has WordPress.org and 1&1 web hosting accounts. I already have admin access on their WordPress account but do I have to use their same webhosting account (i.e. ask them to give me admin permission and account details) or can I use a new account on some other webhost? Don't want to mess anything up!

1 Answer

The question is not fully clear to me. Does your client wants you to use another webhosting or are you completely free to do what you want? Because if so I would just let it be as it is. But if he wants you to change webhosts for him, you should copy/export the database (SQL) and paste/import it in the new database webhosting.

If you're going to install Wordpress on a webhosting you need account details, because you need to build/have a database where wordpress can be installed on.

I think I should explain the situation in more detail, but to answer your question first, no, I don't think I'm free to do whatever. I figure that'd complicate things.

Anyways I built a new theme with plugins galore and a couple jQuery toolkits. I used a backup plugin on WordPress to download my localhost database. My confusion lies in the next steps.

She has a site already (domainname.com) with its own theme and database, but wants me to use my new theme within the already established site, i.e. domainname.com/music, which currently uses the default 2014 WordPress theme and has no content yet. Personally I wouldn't do this myself because music could be confused as a menu item on a navigation bar but it's what she wants...

Based on what you're saying, I should ask her to provide login credentials or add me as an admin on the 1&1 webhost account right? Then I can go in and basically do this: http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/

If I do that, I would have to enter domainname.com/music as the registered domain but I already tested this out on 000webhost and It doesn't work. Of course, I don't know if this would be a problem on 1&1 webhost, but if it is, what should I do then?

Ah I get it now. You're wanting to use your theme within her website but not on the homepage but as an example : www.domain.com/anythinggoeshere.

Well you can use a plugin for that, using 2 themes on the same website. I don't know exactly what the plugin is called but if you do a quick google search you will find it. Or am I still not getting it?

I put my theme in a zip folder and tried to upload it to my admin account on WordPress. Multiple times the upload failed. However, multiple themes on her site is not a problem because she has another site within a site that is up and running on another theme. I guess uploading themes directly is pretty glitchy, and very much prefer the database method anyway because it has everything.

Actually I'm going to ask her about how that other site within the site was set up and get back here with an update on the situation. In the meanwhile, just want to thank you for trying to help so far!

No problem, I'm going to sleep now. I'll check it out in the morning. TeamTreehouse is such a fun website because the community is so strong. I love contributing to it.