Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5765

Moving to a new server still assumes old directory structure

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1, 3.1.1
    • Fix Version/s: Unscheduled
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      After moving Civi to a new server it still assumes the old directory structure.

      What I did:

      • copy the directory structure
      • import the database
      • adapt settings in settings.php and civicrm.settings.php
      • Update Directory Path and URL at http://<drupal_site>?q=civicrm/admin/setting/updateConfigBackend&reset=1
      • i provide the new directory path (/home/www/htdocs/testcontact/sites/default/files/) and the base URL (http://testcontact/)

      That's where I get the error

      We could not write /var/www/foee_contact/sites/default/files/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini. Have you moved your site directory or server?

      Please fix the setting by running the update config script

      Note that /var/www/ is where my old server had it's document root. The new server has it's document root in /home/www/htdocs. This is not taken into account by CiviCRM.

      My assumption is that Civi takes the old path from the database table civi_domain.

      Workaround:
      I created a symbolic link on the new server simulating the old structure (inspired by the hint given at http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location)

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              stephang S.G.
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: