Answers.Body: <p>Have you updated the civicrm.settings.php to include new location for $civicrm_root?</p>
  <p>Add below entries in your civicrm.settings.php</p>
  <pre><code>$civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';                                                                                                     
  $civicrm_paths['civicrm.root']['url'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';
  $civicrm_setting['domain']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';
  $civicrm_paths['cms.root']['path'] = '/home/path-to-drupal9/web';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T06:42:07.237Z
Answers.Text: That was the problem.  However, I got it installed now and civicrm gets a 404 now that it is installed.
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T06:51:14.507Z
Answers.Text: Updated my answer
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T07:13:09.787Z
Answers.Text: Thank you! The issue with the 404 is that there was old advice to use Minimal Drupal install. However, the minimal install does not have the path module so /civicrm is not a valid path.
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T05:02:15.843Z
Answers.LastActivityDate: 2021-06-08T06:51:08.477Z
Answers.LastEditDate: 2021-06-08T06:51:08.477Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am upgrading Drupal 7 to Drupal 9 and trying to copy over my CiviCRM database.</p>
  <p>My Drupal 9 install is fresh.  I used the instructions at <a href="https://docs.civicrm.org/installation/en/latest/drupal8/" rel="nofollow noreferrer">https://docs.civicrm.org/installation/en/latest/drupal8/</a> to download CiviCRM with Composer.</p>
  <p>I have upgraded the existing CiviCRM settings file to work with Drupal 9.</p>
  <p>The problem is that I am getting the following error when trying to load Drupal.&quot;Warning: require_once(CRM/Core/ClassLoader.php): failed to open stream: No such file or directory in require_once() (line 516 of                                           /home/user/public_html/web/sites/default/civicrm.&quot;</p>
  <p>As expected Drupal will not load at all.</p>
  <p>I have checked all my paths and that CiviCRM is in my vendor folder.  /home/user/public_html/vendor/civicrm</p>
  <p>Any help is greatly appreciated.</p>
  <p>Thanks,
  Josh</p>
  
Tags: <upgrade><drupal-8><drupal-9>
Title: Upgrade Drupal 7 to Drupal 9
ThreadText: # Upgrade Drupal 7 to Drupal 9
  
  (Asked by: username_0 on 2021-06-08)
  
  I am upgrading Drupal 7 to Drupal 9 and trying to copy over my CiviCRM database.
  
  My Drupal 9 install is fresh. I used the instructions at <https://docs.civicrm.org/installation/en/latest/drupal8/> to download CiviCRM with Composer.
  
  I have upgraded the existing CiviCRM settings file to work with Drupal 9.
  
  The problem is that I am getting the following error when trying to load Drupal."Warning: require\_once(CRM/Core/ClassLoader.php): failed to open stream: No such file or directory in require\_once() (line 516 of /home/user/public\_html/web/sites/default/civicrm."
  
  As expected Drupal will not load at all.
  
  I have checked all my paths and that CiviCRM is in my vendor folder. /home/user/public\_html/vendor/civicrm
  
  Any help is greatly appreciated.
  
  Thanks,
  username_0
  
  **Tags:** upgrade, drupal-8, drupal-9
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-06-08. Score: 2
  
  Have you updated the civicrm.settings.php to include new location for $civicrm\_root?
  
  Add below entries in your civicrm.settings.php
  
  ```
  $civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';                                                                                                     
  $civicrm_paths['civicrm.root']['url'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';
  $civicrm_setting['domain']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/';
  $civicrm_paths['cms.root']['path'] = '/home/path-to-drupal9/web';
  
  ```
  
  > **Comments:**
  > **username_0**: That was the problem.  However, I got it installed now and civicrm gets a 404 now that it is installed.  
  > **username_1**: Updated my answer  
  > **username_0**: Thank you! The issue with the 404 is that there was old advice to use Minimal Drupal install. However, the minimal install does not have the path module so /civicrm is not a valid path.  
  
  ---
  
  