HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Suggestions on moving hosting providers

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#93925 (In Topic #18751)
Avatar

Well-settled

Hey all,

My agreement with my current hosting provider expired last month.  I did a 3-month extension while I looked at other alternatives and will probably end up going with Phi9 as my new hosting provider.  Does anyone have any suggestions on a easy way to migrate my OCP content?

If I do a fresh install of OCP at the new provider, and then restore from a backup taken from within OCP, would that do it?

I'm trying to figure out how I can migrate all of the database content, etc over with the minimum amount of hassle.

Any suggestions or ideas would be welcome.

Thanks
Back to the top
 
Posted
Rating:
#93926
Avatar

Community saint

D-Train said

  • 1. If I do a fresh install of OCP at the new provider, and then restore from a backup taken from within OCP, would that do it?
  • 2. Any suggestions or ideas would be welcome.
1.1 I wouldn't put all my eggs in the ocP basket in this instance. Even Chris has advised in the past that depending solely on an ocP backup may not necessarily be a 'wise' move.

1.2 Do a database backup to your hard disk using phpMyAdmin, carving up the db into 'maximum allowed' chunks. I'm not sure what the top limit is, but I recall I ended up with several LARGE files, named and numbered to my specs.

2.1. Copy all the files off the 'old' hosts' server, and FTP it all to the new host. Once the old host has turned off the lights, your data is effectively GONE!

2.2 Install the SAME version of ocPortal that you are currently using (the config options will be freshly built), and then populate the db with your backup.

2.3 Your site should work as it always did, after your domain name has been propagated worldwide, identifying your domain name as being hooked to the new NS servers.

2.4 This might be a good time to clone your site using temp's tutorial.

2.5 Now consider upgrading the clone if your version is older than the latest one that has been rolled out (currently 9.0.4). If that works without too much head-banging, go for an upgrade on the 'live' site!




Other members might come up with a simpler solution, but this worked for me when I switched hosts.

Good luck.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93927
Avatar

Community saint

Fletch said

2.4 This might be a good time to clone your site using temp's tutorial.
There is no reason you can't clone your your site from one host to another, effectively turning it into a migration.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#93931
Avatar

Community saint

temp1024 said

There is no reason you can't clone your your site from one host to another, effectively turning it into a migration.
The reason I did what I did was that I was given a vague "Cross Domain - Bog Off" message when I tried something like that.

Perhaps I was being too sensitive?

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93957
Avatar

Community saint


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#94004
Avatar

Well-settled

Thanks everyone.  I'll have to play around with all of the above and see what works out.  I have a month or so before my current extension runs out, so hopefully lots of time to make sure I get a working method.

Although, a "hint hint" to Chris that some sort of full back-up and restore (including coping or re-creating database configuration and data) might be another one of those fine selling points for OCP if it had it.   ;)
Back to the top
 
Posted
Rating:
#94005
Avatar

It has that, but webhosts often apply memory limits, PHP timeouts, CGI timeouts, various other timeouts and limits, that stop big operations working -- so it does not work on all hosts and we recommend to use what hosting control panels provide -- because they run at a system level and should not have such limits on them.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94008

Non-joined user

So out of curiousity, if I backup my current site via OCP which is on a Linux hosting platform, and restore that backup on my new hosting platform which is on Windows, if everything goes correctly with the backup and restore would that effectively transition my site correctly?

That might be worth trying.
Back to the top
 
Posted
Rating:
#94009
Avatar

Well-settled

Sorry, I got timed out and didn't notice.  The question above is from me.    :$
Back to the top
 
Posted
Rating:
#94010
Avatar

Yes.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#94069
Avatar

Honoured member

I just went through this less than a month ago, and the move for me also included switching from SMF to OCP as well as a host change.

The thread is only a few weeks back, but in case you can't find it, it's called "Advance migration question"

Here's the link:  http://ocportal.com/forum/topicview/misc/deploying/-resolved-advance.htm?kfs233=30

If you need any tips or pointers, let me know, I'm happy to share lessons learned with you.

Mark
Back to the top
 
Posted
Rating:
#96822
Avatar

Well-settled

Just as an update on this, Phi9 uses a Microsoft environment (which is actually a reason I chose them) and they recommended I use WebMatrix to do the migration, which seemed like a good idea since I could test things out on the local WebMatrix copy before uploading.

The only thing is that I got a .net version of my domain there to test with, instead of the current .com domain my site uses now.  But after some work I managed to get WebMatrix set up properly.  I created and downloaded a back-up of my current site, and managed to restore that to the WebMatrix version.

After editing the info.php file to match the new URL, database name, database user name, and the "localhost" base URL for webmatrix use, everything works fine locally.

But when I actually upload to the new provider, when I try to access the site I get this message:


Critical error - bailing out

The website's first database query (checking the page request is not from a banned IP address) has failed. This almost always means that the database is not set up correctly, which in turns means that either backend database configuration has changed (perhaps the database has been emptied), or the configuration file (info.php) has been incorrectly altered (perhaps to point to an empty database), or you have moved servers and not updated your info.php settings properly or placed your database. It could also mean that the iqqs_usersubmitban_ip table or iqqs_config table alone is missing or corrupt, but this is unlikely. As this is an error due to the website's environment being externally altered by unknown means, the website cannot continue to function or solve the problem itself.
Details here are intended only for the website/system-administrator, not for regular website users.
If you are a regular website user, please let the website staff deal with this problem.

Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.

I've given up for moment and will try again tomorrow when I am a bit less tired, but figured I would ask and see if anyone has any ideas that might work on addressing this?  I'm guessing I may have made some kind of mistake with the info.php file maybe?

Any ideas or suggestions are welcome.

Thanks
Back to the top
 
Posted
Rating:
#96823
Avatar

Well-settled

One more update, after playing around some more I got this message:

Database query failed: SELECT filename FROM iqqs_addons_files [Table '235_bawiki.iqqs_addons_files' doesn't exist]<br />

Hopefully that helps.
Back to the top
 
Posted
Rating:
#96825
Avatar

When I've worked with WebMatrix, I've found it all to be really quite buggy. I don't think it really has been well battle-tested, and it adds lots of abstractions on top of things. You're probably best off ignoring it and looking directly at the database configuration etc, to ensure that all is uploaded correctly.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: