Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-09-12 16:28:39
- gb_ksu
- Member
- Registered: 2007-09-12
- Posts: 20
Moving local install to hosted environment...
Hey all, I have been working on my first site developed with Textpattern, and it has been wonderful so far. I have been following the book Textpattern Solutions, which has really helped me grasp how Textpattern works. I wouldn’t normally begin a message this way, but I just want everyone to know that I don’t have much experience when it comes to Textpattern (or PHP and MySQL for that matter). I am more of a front-end designer, so these things don’t come naturally to me at all.
Moving on. I have searched high and low for a solution that I figured someone must have had already, but with no luck. I have found solutions along similar lines to my problem, but nothing specifically that suits my need. So, here goes.
I have developed the site with a local installation of Textpattern and MAMP. The site is nearly completed and I now need to move everything to the hosted environment for live testing. My questions are listed below, but any specific additional information would be greatly appreciated. Steps to this process would be the most helpful. Please keep in mind that I have never done this before. :)
- Will I need to perform a clean install on the new server, or can I simply upload my existing local directory to the live directory?
- What is the best way to export MySQL tables, and which do I need to export?
- How do I import these tables, and what changes need to be made now that they are on a live server?
- Which lines, if any, need to be changed in the config.php file? (saw something about this in another thread)
I know this doesn’t cover everything, but this is what I have so far. If some of these questions aren’t important, please let me know. I’m sure many of you have experience with this, so as I mentioned above, providing me steps would be amazing. My deadline is coming up quick (seems to always work that way doesn’t it?)!
Thanks in advance!
Offline
Re: Moving local install to hosted environment...
Somekind of steps (how I do it):
- Copy contain of public_html (files and subdirectiories) to your hosted server
- Create new Database to your webserver
- Edit your textpattern’s config-file (textpattern/config.php)
- Pack tables, values etc. from your database that you have in your local install (Export / Save as text-file)
- Import packed tables to your new database
- Change vals in txp_prefs-table, that they correspond your server (domain, home-path, file-path)
And now you are ready to go.
Cheers!
Offline
#3 2007-09-12 21:53:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Moving local install to hosted environment...
You can also find articles about moving an installation in TextBook.
Offline
#4 2007-09-13 01:36:41
- gb_ksu
- Member
- Registered: 2007-09-12
- Posts: 20
Re: Moving local install to hosted environment...
Thanks guys.
Jukka, some quick questions regarding the steps you provided…
2. The only database I set up was when I installed Textpattern. Is the “textpattern” database the only one that I need to create on the new server?
3. Which lines will I need to edit? (keep in mind I don’t really know PHP or MySQL) If there aren’t specific lines, as this could change per config file, what do I need to look for to change?
6. I think I understand this, but will just have to see when I get to doing it. What it sounds like is that it will still have the settings saved from my local install, is that correct?
Thanks for listing that out in steps, it was definitely helpful. I’m sorry to ask more questions, but having never done this before, I want to do it right the first time around.
Els, I had come across that in TextBook previously, but it doesn’t actually fit the bill of what I’m doing, unless I’m missing something there. Which of those options would meet the need I described above? Any direction would be great.
Offline
#5 2007-09-13 16:10:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Moving local install to hosted environment...
Okay, sorry for not elaborating. In Textbook you’ll find a link to Destry Wion’s article Moving a Live Textpattern Site to a Local Server. At the bottom of this article you can find instructions how to do it the other way around (but still read the entire article). It’s a very comprehensive article, you’ll probably find the answers to all your questions. If not, just come back here :)
Offline
#6 2007-09-13 21:54:55
- gb_ksu
- Member
- Registered: 2007-09-12
- Posts: 20
Re: Moving local install to hosted environment...
Thanks again Els. That’s one of the articles I had come across previously, but skipped to the bottom of the article. The directions there were very basic at the most, and I wasn’t sure that reading the entire article (for something that was the opposite of what I needed) would actually help. Thinking about it now, it makes total sense to read it. I will get right on that! Anyway, don’t be surprised if you do see me back here, since I’m very cautious about doing it right the first time.
Offline