Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-04-23 02:37:44
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Moving content from a blog to a different domain
I’ve maintained a textpattern blog hosted at a particular domain for several years. Now I’d like to purchase a different domain and move my blog content and continue there. How would I go about doing that ? How can I export the content (including all the images that would have to be hosted on the new domain) and set up a new blog at a new domain, with the old archived content ?
Offline
#2 2010-04-23 12:48:48
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Moving content from a blog to a different domain
Offline
#3 2010-09-28 12:59:37
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
And if you move to both another host AND domain ? Do you need to make changes in the database ? Because when I had my database imported to my new TXP install, suddenly I got pages that only said “Database unavailable.”
Offline
Re: Moving content from a blog to a different domain
Can you log in to the new install? If so, what do Diagnostics say? What is the site URL preference?
In either case, is your config.php correct for the new database and path settings?
Code is topiary
Offline
#5 2010-09-28 15:10:34
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
No, I can’t login the new install or run the setup process. I went as far as entering my info but then it says the database is already setup and when I try to login it gives all sorts of errors.
The config.php is correct to connect to the new database on the new server (although the old database was imported into the new one).
Offline
Re: Moving content from a blog to a different domain
lisionosk wrote:
it says the database is already setup
Is this to say you successfully did a fresh Txp installation on the new server, then imported the old data, then the problems began?
All in all it’s probably simplest to start over (doesn’t take long). If it were me, here are the steps I’d take:
- Make sure there is a new, empty database on the new server. Really empty; contains no tables.
- Upload a fresh copy of the Txp files, making sure to use the same version as the site to be moved.
- Go through the normal installation routine and get the new installation working; confirm Diagnostics are OK.
- Do a mysqldump from the current site’s db, excluding the
`txp_users`
and`txp_prefs`
tables. - Import the mysqldump file into the new db.
- Adjust any preferences on the new site as needed to match the old settings.
Code is topiary
Offline
#7 2010-09-28 15:35:35
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
Yes, the fresh install to a new database worked. Then I had the database imported and I couldn’t log on anymore. So I tried a new fresh install to the now imported database and still can’t connect.
And okay, thank you I will try that !
Offline
#8 2010-09-28 15:37:20
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
Where can I find older versions of TXP ? My old one is 4.0.3.
Offline
#9 2010-09-28 15:42:09
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
Or perhaps I can upgrade my old installation of TXP before importing the database again.
Offline
Re: Moving content from a blog to a different domain
lisionosk wrote:
Or perhaps I can upgrade my old installation of TXP before importing the database again.
That’s what I’d do.
Code is topiary
Offline
#11 2010-09-28 15:57:27
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Moving content from a blog to a different domain
Okay!
Offline