Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
TextPattern migration to production server
I’m using TP for the first time…
I have tested it on my local server and would like to move it to my hosting server.
I can’t find any resources to describe how to do this… is it just a case of export the database and ftp all the TP files across? (I know the config.php will have to change!).
Last edited by njprrogers (2008-09-05 14:12:03)
Offline
#2 2008-09-05 14:15:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: TextPattern migration to production server
Here you’ll find a link to an article by Destry about moving from remote server to local install. At the very end of the article is a description how to do it the other way around.
Offline
Re: TextPattern migration to production server
Basically that is what it takes to move TXP. Plus remember to change prefs via Textpattern or preferences, or directly via phpmyadmin before moving the site from txp_prefs table. You need atleast change the website address and possibly some paths.
I would do this way:
- Export MySQL database dumb.
- Make changes to the sql-file (changing adresses and other essentials).
- Import the dumb to the other server.
- Copy the files to the live server.
- Change database usernames and passwords in config.php
- Now it is live and running. Takes about 15 secs (+internet/FTP connections not so fast speed).
Offline
#4 2008-09-05 16:07:42
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: TextPattern migration to production server
Of course Gocom is also right, but editing an sql file is not that easy for everyone. So if you feel uncomfortable doing that, just follow Destry’s instructions, and (important addition from Gocom!) add a #6 to those instructions:
6. Change the site URL and paths in Preferences.
(I made it #6 because it’s always the last thing I do.)
Offline
Re: TextPattern migration to production server
but editing an sql file is not that easy for everyone
It is like text file so it isn’t hard job. Also notice that you don’t have to read the file or anything, just use editors Replace functions to find and replace paths that are in the Prefs. In example, Replace (most like CTRL+F in most editors under Windows):
- from
http://localhost/dang-my-dir/
tohttp://mydomain.com
It’s also almost only thing that needs updating (plus mysql user ofcourse), cause other settings should be auto-updating above TXP 4.0.5.
Last edited by Gocom (2008-09-05 17:10:20)
Offline
#6 2008-09-05 17:35:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: TextPattern migration to production server
Gocom wrote:
just use editors Replace functions
Right. Completely forgot about that. Oh oh…
Offline