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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
Pages: [1]

Author Topic: Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?  (Read 1168 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
April 20, 2014, 08:31:06 am
Greetings,

For a client, they have an existing working installation of CiviCRM. Said instance has now a dedicated copy of Drupal to power it, separate subdomain and file system instance of Drupal than the production Drupal sites which are on other subdomains.

To arrive at the dedicated instance of Drupal to power CiviCRM, said instance was moved/renamed to be on just this one subdomain, and all Drupal content mothballed. A new clean Drupal installation was performed, nodes migrated, etc...

Result, a lot of left over nodes, modules, etc... all of which CiviCRM does not need.

Is there known steps to wipe the Drupal installation, reinstall clean Drupal, and then have the CiviCRM module install again and not cause damage to CiviCRM? Do I need to be concerned that Drupal user ID numbers stay the same as they were in the existing instance of Drupal? Fortunately this site does not use CiviCRM to provision Drupal user ID's, so there are just the site administrative Drupal accounts, and a very few of them in that case.

I have in mind to upgrade all the way to the latest CiviCRM while on the old instance of Drupal which is 6.x code, then when I do the clean install start with D7, and swap out the CiviCRM code to the corresponding release for D7. Any known complications with that part of what I am thinking to do? As far as CiviCRM should be concerned, I would think it would be a non-issue swapping out Civi-D6 to Civi-D7 code on the same version of CiviCRM.

I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
April 21, 2014, 06:03:37 am
Hi Thankful,

A couple of things:

Wouldn't it be easier to remove all custom settings, including nodes and modules? I'm sure that there would be Drupal functionality to do this. If not, probably a contrib module. Upgrading to the latest d7 seems like a good idea though.

You need the drupal ids to be the same as they are currently if they are connected to civicrm via civicrm's 'external ids'. This would probably be the first thing to check. Otherwise, making a list and manually updating them may be best as you said there are not many.

You also need to see if your civicrm db and your drupal db are in the same database. It'll be much easier if they aren't!
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
April 21, 2014, 12:03:30 pm
Greetings John,

Quote from: JohnFF on April 21, 2014, 06:03:37 am
Upgrading to the latest d7 seems like a good idea though.

Clean install of D7 into a blank DB sounds much easier than cleaning the Drupal instance up and then doing the D6 --> D7 upgrade.  ;)

Quote from: JohnFF on April 21, 2014, 06:03:37 am
You need the drupal ids to be the same as they are currently if they are connected to civicrm via civicrm's 'external ids'. This would probably be the first thing to check. Otherwise, making a list and manually updating them may be best as you said there are not many.

All right, so like I suspected, CiviCRM has tracked who is doing what based on the Drupal UID number. I will focus on making sure I am able to recreate the required Drupal accounts and obtain the correct UID numbers matching the current installation.

Quote from: JohnFF on April 21, 2014, 06:03:37 am
You also need to see if your civicrm db and your drupal db are in the same database. It'll be much easier if they aren't!

Indeed they are in separate databases.

I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
April 21, 2014, 03:21:04 pm
Hi Michael,

If you're going to do the D7 upgrade as well, probably the best thing for you to do is a dry run locally. I don't know if the DB structure for Civi is different from D6 to D7, although I can't imagine why it would be.

Do you have a local install you can play with? If you need to create one from scratch on a local machine, remember to scramble all the Civi data and Drupal passwords.
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?
April 21, 2014, 04:26:33 pm
Greetings John,

I hope to have adequate memory to duplicate a test environment right on the production server, hide it under a subdomain.

I have upgraded as far as I can go on the old server hardware. At least now the site is up to security patch levels. I was only able to upgrade to Civi 4.3.4 on the legacy server as 4.3.5 update required a higher MySQL version, thus has to wait until on the new server hardware. Once there, I plan to upgrade all the way to current stable. Then duplicate production to a test environment, and work out how to wipe the Drupal installation powering the CiviCRM site, reinstall with fresh D7, then drop in the corresponding CiviCRM for D7, fiddle with the UID's, and see how it turns out. Once successful, perform the same on production, and breath a sigh of relief for a job well done!  ;D

I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Possible to do a clean install of Drupal, and for CiviCRM "not to miss a beat"?

This forum was archived on 2017-11-26.