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) »
  • Trouble moving civi installation from one domain to another - SOLVED
Pages: [1]

Author Topic: Trouble moving civi installation from one domain to another - SOLVED  (Read 773 times)

richard_simon_bda

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.3.30
  • PHP version: 5.3.27
Trouble moving civi installation from one domain to another - SOLVED
August 25, 2014, 09:11:46 am
My current Drupal/civi 3.4 installation resides in the root of one of my domains. I copied all the code to another domain with a separate ip address and cpanel, but on the same server. The installation is not in the root- it's down one directory - root/crm . My Drupal home page works but the paths are all messed up. The installation wants to navigate to domain/crm/civicrm.... and I get page not found. In order to manually navigate, I have to instead type domain/crm/index.php?q=civicrm ....

Does anyone know what the fix is for this?
« Last Edit: August 26, 2014, 02:45:15 pm by richard_simon_bda »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Trouble moving civi installation from one domain to another
August 25, 2014, 09:13:19 am
Have you cleared all caches, updated your resource urls, and deleted the contents of /files/civicrm/templates_c
Try asking your question on the new CiviCRM help site.

richard_simon_bda

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.3.30
  • PHP version: 5.3.27
Re: Trouble moving civi installation from one domain to another
August 25, 2014, 10:59:56 am
Thanks Coleman. Yes I have.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Trouble moving civi installation from one domain to another
August 25, 2014, 01:01:36 pm
Quote from: richard_simon_bda on August 25, 2014, 09:11:46 am
The installation wants to navigate to domain/crm/civicrm

That's correct actually, I believe.

Quote from: richard_simon_bda on August 25, 2014, 09:11:46 am
In order to manually navigate, I have to instead type domain/crm/index.php?q=civicrm ....

Sounds like you're missing the .htaccess file.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

richard_simon_bda

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.3.30
  • PHP version: 5.3.27
Re: Trouble moving civi installation from one domain to another
August 25, 2014, 01:59:25 pm
I have installed Drupal and civiCRM to a sub-directory, CRM, beyond the root. All the files from my previous installation were copied there. So, there is one .htaccess file in the root of the domain and another in the CRM directory. Would this cause problems? Should there only be one? The root domain has its own website which doesn't use Drupal. The databases weren't moved. They were simply copied, renamed and the settings files updated appropriately.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Trouble moving civi installation from one domain to another
August 26, 2014, 03:31:05 am
What the .htaccess file does is takes

domain.com/crm/civicrm

and rewrites it into the full URL of:

domain.com/crm/index.php?q=civicrm

So if the second works and the first fails, then it's a problem with .htaccess or your Apache configuration.

Same test you can run with

domain.com/crm/user

and

domain.com/crm/index.php?q=user

which is a default Drupal page, nothing to do with CiviCRM.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

richard_simon_bda

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.3.30
  • PHP version: 5.3.27
Re: Trouble moving civi installation from one domain to another
August 26, 2014, 12:52:02 pm
Thanks. Nothing works so far. I have hired a civi developer to take a closer look.

richard_simon_bda

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.3.30
  • PHP version: 5.3.27
Re: Trouble moving civi installation from one domain to another- SOLVED
August 26, 2014, 02:44:30 pm
Problem solved! It was the .htaccess file. Since our new installation was not in the root, the following line had to be changed:

RewriteBase / -> RewriteBase /crm

Thanks for everyone's help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Trouble moving civi installation from one domain to another - SOLVED

This forum was archived on 2017-11-26.