CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Migration Issues - Resolved. Suggested updates for documentation
Pages: [1]

Author Topic: Migration Issues - Resolved. Suggested updates for documentation  (Read 1445 times)

bob_bingham

  • Guest
Migration Issues - Resolved. Suggested updates for documentation
August 07, 2009, 12:27:35 pm
The Documentation here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Needs to be fixed at this spot:
6) Login to Drupal or to Joomla Administrator and enter the following URL in your browser:

    * Drupal sites: http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1

The problem with this is a cart before the horse issue. One can't go to that page if the settings are incorrect for the new server without Drupal dying a horrible death and serious forensics are required to figure out WHY it dies. When I moved all the files and the database from one server to another, it appears that the values in civicrm_domain - specifically in the config_backend field were from the old server and this was causing huge problems.

In debugging the issue, the best info I could get on what was going on was a "segmentation fault" error in /var/log/apache2/error_log Not being able to see the error being thrown cost me many, many hours in exploring possible problems with php itself, mySQL and InnoDB

So, I updated the paths in the the config_backend field to make sense for the new server, and then went to http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1 , and now got php errors telling me of permission problems, directories needing to be created, made writable, etc etc. So I resolved each of those issues as they came up before finally getting to the configuration page.

Maybe on the page note that "If, when navigating to http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1 you get a fatal error (white screen o' death, segmentation fault in /var/log/apache2/error_log), try changing the paths in  the civicrm_domain table for - config_backend to your paths for the new server"

Thanks,

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Migration Issues - Resolved. Suggested updates for documentation
August 07, 2009, 01:28:34 pm
Hi, You can update the wiki yourself. Just create an account if you need to.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bob_bingham

  • Guest
Re: Migration Issues - Resolved. Suggested updates for documentation
August 09, 2009, 07:07:44 am
ok - I made the changes in the Wiki. Please edit at will if you know something more about this than I do. The whole config_backend issue is a bit maddening

oban

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
Re: Migration Issues - Resolved. Suggested updates for documentation
August 17, 2009, 09:19:44 pm
I did what bob_bingham says in his post above. I edited the config_backend field by hand, changing the root and domain address to production settings.

The difference in my error is I get "Page not found" error when I hit

http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1

But I get the white screen of death when I hit any other page on the site. Every page except civicrm* pages are WSOD'ed.

bob_bingham, can you elaborate on how you knocked out each issue you came across after editing the config_backend field?

EDIT: I tried running a fresh install instead, and I am still getting these Page not found errors on civicrm* page. What's more puzzling is that after installation, civicrm.settings.php is nowhere to be found. Not in default/*, not in sites/<sitename>/. It's gone!

EDIT2: I solved the "Page not found" issue. Turns out that the Drupal module was not enabled, and therefore its permissions weren't vested in the admin user. Once those things were done, I managed to find the civicrm* pages. Phew.
« Last Edit: August 17, 2009, 09:36:41 pm by picardo »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Migration Issues - Resolved. Suggested updates for documentation

This forum was archived on 2017-11-26.