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) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Migrating servers should NOT be this complicated!!!! (Joom/Civi)
Pages: [1]

Author Topic: Migrating servers should NOT be this complicated!!!! (Joom/Civi)  (Read 2651 times)

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 09:59:01 am
I have managed and installed hundreds of different CMS/blog systems and CiviCRM is the absolute WORST when it comes to migrating!

A client switched webhosts and started migrating their Joomla/CiviCRM directories -- yes, I know this is not the correct way to do it, but thats how it started.  I took over and changed all of the database references as they related to Joomla and it works fine.  However, CiviCRM does not.  I have deleted Civ through the Joomla uninstaller, removed any leftover directories from Civ, and deleted all database tables that began with civicrm_.

Now, with a well-written package, this should have completely removed any references to the package.  This, however is not the case.  I ran the installer again, got the "success" page, then went to Administer CiviCRM.  Of course, I get a page full of errors referencing some file on the old webhost, even though I deleted the package, all of the directories, and its database tables.  HOW exactly are there still remnants of the old host when I've removed everything installed by CiviCRM?

I don't need lecturing about how someone should have followed the instructions -- I'm aware they should have.  I also don't need lecturing on "its free, so you shouldn't complain" because you know what? If it worked right and was easily portable I would gladly pay for it.

I'm on A2Hosting and here's the error code:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/monolit2/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/default_filter.xml) is not within the allowed path(s): (/home/migrate.a2/web:/home/danetidw:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 201

Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php:217 Stack trace: #0 /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML() #1 /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(132): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/admin.civicrm.php(45): CRM_Core_Invoke::invoke(Array) #5 /home/dan in /home/danetidw/public_html/supportsdc/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 217

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 10:11:32 am

I do agree that CiviCRM should make it much easier to migrate stuff (community contributions welcome). It is definitely convoluted right now, but it is well documented and if folks follow the steps it should be relatively easy

I think users/developers do like to help when folks have a reasonable tone and suggestions for improvements (and better yet patches / contributions)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 10:15:06 am
Quote from: Donald Lobo on August 24, 2009, 10:11:32 am

I do agree that CiviCRM should make it much easier to migrate stuff (community contributions welcome). It is definitely convoluted right now, but it is well documented and if folks follow the steps it should be relatively easy

I think users/developers do like to help when folks have a reasonable tone and suggestions for improvements (and better yet patches / contributions)

lobo

Its difficult to have a reasonable tone when I've spent nearly two days trying to figure out why its not working.  I've even gone to the drastic measure of just deleting everything (including the user data) and trying a fresh install -- and I can't even get that to work because somewhere, CiviCRM put a file where it shouldn't have gone and I have no idea where it is and there's no documentation of what changes CiviCRM makes to the general Joomla system.
« Last Edit: August 24, 2009, 10:19:20 am by danetidwell »

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 11:20:49 am
Thanks to everyone for all the help.  I found a reference to the file here for a different issue: http://forum.civicrm.org/index.php?topic=4712.0

For some reason, CiviCRM puts a very important .ini file in a bizarre directory Joomla uses for images (site.com/media).

If anyone else is having issues with CiviCRM referencing the old site structure after a botched host transfer, the culprit is in site.com/media/civicrm/upload/config.IDS.ini.

Contribution?  Keep all CiviCRM files in com_civicrm and database tables civicrm_*

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 01:09:10 pm

this is documented in step 10 of the "moving to a new server" installation

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

CiviCRM needs to use the media directory to cache a set of files (including Smarty compiled templates etc). It is good practice to localize the set of files that the web server writes to one directory in the application. In the case of Joomla, it is media, in the case of drupal it is the 'files' directory

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 24, 2009, 08:05:19 pm

I spent some time today trying to clean things up and make things easier for folks who have to go thru the process in the future. I think its a significant improvement over what we currently have, but as always i think we can (and will) do better and continue to improve in subsequent releases

http://issues.civicrm.org/jira/browse/CRM-4949

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 28, 2009, 07:37:14 pm
Lobo,

I also struggled with this one lately... Maybe part 9. of the instructions should be moved before part 5.? I was getting WSOD at part 5 and while any clever person would have read all the way through, I did not. Had the instructions been before refreshing config_backend, everything would have worked fine and I wouldn't have got stuck.

While the migration process is a little cumbersome, I have to say that with the correct instructions provided its not a major issue for me. Drupal also has some requirements and issues around migration in my experience. Thanks for the improvements anyway though.

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Migrating servers should NOT be this complicated!!!! (Joom/Civi)
August 28, 2009, 08:57:24 pm

fixed. moved part 9 to just above 5. wierd it was so late in the process

i'm hoping that our changes to 2.2.9 / 3.0 make all this a thing of the past :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Migrating servers should NOT be this complicated!!!! (Joom/Civi)

This forum was archived on 2017-11-26.