Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-02-25 22:23:23

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Advice on fixing a site after changing hosts...

Can someone with some understanding of Textpattern take a look at this site and tell me how to correct the problem you see? I’d appreciate it very much.

This is after copying the site files over & importing the database as part of the migration from Joyent to TextDrive.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#2 2013-02-25 23:41:51

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Advice on fixing a site after changing hosts...

Can’t really say a thing about the errors (try a forum search), but there’s a raw PHP tag at the foot of the page that should be inside txp:php tags. Start with the latter, who knows … ?

Edit: I meant, replace the opening/closing PHP with opening/closing TXP.

Last edited by uli (2013-02-25 23:43:02)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2013-02-26 05:50:17

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Advice on fixing a site after changing hosts...

OK…efforts to resolve the problem have (apparently) made things worse. Now I can’t see the site, nor log into the admin side. Does “Forbidden. You don’t have permission to access / on this server.” mean anything to anyone here? Thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#4 2013-02-26 06:09:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: Advice on fixing a site after changing hosts...

that maybe due to htacess. I would go via ftp and temporarily rename the htaccess file. There seem t be other problems though as nothing is found. Are you sure that all the files have been uploaded?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2013-02-26 14:20:20

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Advice on fixing a site after changing hosts...

colak…thanks for your reply. I’m about to dig back in here on Tuesday morning. This migration has been one, long disaster. I envy those who can make site changes without involving the public. Every time I touch this stuff I go weeks without email and longer without a site.

I’m going to return to the beginning, delete everything related to Textpattern on TextDrive and try again to move the site. After that, I’ll check on the htaccess business.

Again, many thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#6 2013-02-26 14:25:06

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Advice on fixing a site after changing hosts...

What did you use for migrating files? FTP/SFTP? If you just moved/copied files over and also created/imported a database, you really shouldn’t have had any problems…

Offline

#7 2013-02-26 14:40:00

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Advice on fixing a site after changing hosts...

I’ve been working on this for weeks, and constantly since late Friday night. I’ve tried 8 or 9 methods multiple times for dealing with the database, the Textpattern code, the user names, database names, etc. My method was to create a database, then import my old database from Joyent into it. Then, I did a fresh install of Textpattern on TextDrive and have been trying to go through setup. However, after entering “MySQL login, MySQL password, MySQL server, MySQL database” on the setup screen, I’m told “Database XXXXXX_YYYYYYY_ZZZZ does not exist or your specified user does not have permission to access it.”


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#8 2013-02-26 14:54:43

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Advice on fixing a site after changing hosts...

You should not need to install a fresh copy of TXP on the new TXD server – just copy your current site files over (basically everything in/web/public) from Joyent to TXD.

Create a new DB at the same time on TXD, and copy the current Joyent DB. I do this from Virtualmin because DB’s are weird when they get big, and Virtualmin exports quickly and effectively. Once the the DB is exported, import it into the freshly created TXD DB.

Then, edit the config.php on TXD to reflect the new user/pass and DB name. That’s all there is to it – maybe one or two tweaks to the TXP preferences.

Is your DNS pointing to TXD or Joyent?

Offline

#9 2013-02-26 14:59:56

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Advice on fixing a site after changing hosts...

Thanks, Jonathan. I’m about to delete the Textpattern stuff on TextDrive again and start over using your instructions. By your instructions, it looks as though I should copy everything from Joyent to TextDrive first. Then, create the database on the proper virtual server at TextDrive. Then, give the user of that virtual server rights to that new database. Then, import the old database from Joyent into the newly created one. Then, edit the config.php file on TextDrive.

Do I have this approximately right? Oh, and the last time I check the DNS settings at Namecheap and TextDrive and Joyent, they were pointing to TextDrive. I’ll check all of that again before I begin again.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#10 2013-02-26 15:14:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: Advice on fixing a site after changing hosts...

On thing re textdrive. It does not accept all compressions for import.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#11 2013-02-26 15:30:00

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Advice on fixing a site after changing hosts...

6sigma wrote:

Thanks, Jonathan. I’m about to delete the Textpattern stuff on TextDrive again and start over using your instructions. By your instructions, it looks as though I should copy everything from Joyent to TextDrive first.

Yes, that’s correct.

Then, create the database on the proper virtual server at TextDrive.

You can do this anytime, just make sure to create the database on Virtualmin not phpMyAdmin. Not sure if you can create from phpMyAdmin, but it should be done on Virtualmin.

Then, give the user of that virtual server rights to that new database.

This is not needed. Just login to Virtualmin on TXD and create the new database.

Then, import the old database from Joyent into the newly created one.

Yes, once you have a good export file from Virtualmin from your old server on Joyent. Use Virtualmin for the export and save it as a file somewhere.

Then, edit the config.php file on TextDrive.

Yes, only once all the files have been copied over from Joyent to TXD.

Do I have this approximately right? Oh, and the last time I check the DNS settings at Namecheap and TextDrive and Joyent, they were pointing to TextDrive. I’ll check all of that again before I begin again.

Yes you do. If you are happy with the results, change the DNS if needed, sit back and relax. That’s all there is to it.

If you want to move your site files over quickly, use this on the command line in for example Coda:

rsync -azv --progress /users/home/YOUR_USERNAME/domains/YOUR_DOMAIN.com/web/public YOUR_USER@YOUR_TXD_HOSTNAME_IE_YALE.textdrive.us:/users/home/YOUR_USERNAME/domains/YOUR_DOMAIN.com/web/public

Edit the above as indicated, and remove /domains/ if the site on Joyent and/or TXD is in root i.e not within /domains.

You’ll need to enter your password on Joyent when running rsync. Just be sure to first login via Coda to your new TXD domain before running the above code, which will sync all your files on Joyent to TXD. Double check that the paths are correct though.

Edit: Just to clarify – the first part of the rsync is the Joyent path, the second part is for connecting to TXD and the path to where it should sync the files..

Last edited by jstubbs (2013-02-26 15:35:12)

Offline

#12 2013-02-26 15:30:39

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Advice on fixing a site after changing hosts...

colak wrote:

On thing re textdrive. It does not accept all compressions for import.

I think I used .zip or .gz, can’t remember. Either way, it worked!

Offline

Board footer

Powered by FluxBB