Answers.Body: <p>Setting up a new database isn't necessary.  For folks who encounter similar issues in the future:  after checking your <code>BASE_URL</code> setting in <code>civicrm.settings.php</code>, delete your <code>templates_c</code> folder (<a href="https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories">found here</a>), clear all CiviCRM caches, and rebuild your menus.  Details on the latter two items <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers" rel="nofollow noreferrer">are available here</a>. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-22T05:35:36.423Z
Answers.LastActivityDate: 2016-12-22T05:43:41.847Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>The answer is hidden deep in the database. I tried to install Drupal again (just the program), and the same message came up. When I then created a new database, everything works as expected.</p>
  
  <p>So be warned that you will need to setup a new database if you plan to move the server to a new location!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-26T02:50:09.530Z
Answers.Text: Did you try "Cleanup Caches" at civicrm/admin/setting/updateConfigBackend?reset=1 ?
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-25T23:35:40.277Z
Answers.Text: "... you will need to setup a new database if you plan to move the server to a new location!" - That's definitively not true - we moved all our projects 3-4 dozen from one data center to another 2y ago and new IPs all around - not saying it's easy but it definitively takes some getting used to and practice moving Drupal/CiviCRM projects around.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-26T19:29:08.653Z
Answers.LastActivityDate: 2016-01-26T19:29:08.653Z
Answers.UserDisplayName: Cpt. Jumbo
Body: <p>I wasted hours of searching Google back and forth, and found no solution:
  CiviCRM is set up as an internal only CRM system for an organisation (i.e. IP address 192.168.178.36) - so far, so good. Now I took the server with me to work on CiviCRM, so I changed the IP address to 192.168.2.36 accordingly.</p>
  
  <p>I've changed Apaches httpd.conf, and Apache runs without issues. Drupal seems to come up fine, but whenever I want to access CiviCRM via
  <a href="http://192.168.2.36/q=civicrm/dashboard" rel="nofollow">http://192.168.2.36/q=civicrm/dashboard</a>
  the website answers with</p>
  
  <p>a) the former IP address (192.168.178.36) in the header of the result page,</p>
  
  <p>b) "Access denied - you are not authorized to access this page."</p>
  
  <p>I deleted the content of all drupal cache tables, I deleted the content of the "templates_c" directory - no success :-(</p>
  
  <p>Please, can someone point me into the right direction?</p>
  
  <p>Regards</p>
  
  <p>Bernhard</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-22T19:38:54.973Z
Comments.Text: Did you change the url (or IP in your case) in both the sites/default/civicrm.settings.php and settings.php files?
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-23T15:45:35.427Z
Comments.Text: Yes, both `$base_url` (for Drupal) and `CIVICRM_UF_BASEURL` (for CiviCRM) point to "`http://192.168.2.36`"
Comments.UserDisplayName: Cpt. Jumbo
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-23T16:56:04.567Z
Comments.Text: Not to beat a dead horse, but if you haven't search through both those files for your old ip address, you should.  It may appear other things like CIVICRM_TEMPLATE_COMPILEDIR and civicrm_root.
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-23T16:59:03.020Z
Comments.Text: A work around might be to put a cheap router between your server and the work network.  That way you can have the same IP address.
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-23T17:01:53.793Z
Comments.Text: What you're trying to do isn't really isn't' much different from creating a test env minus the whole copying of db and code trees.    There are lots of guides out there on all the things you need to do.
Comments.UserDisplayName: Paul-Tahoe
Tags: <drupal><urls><civicrm.settings.php>
Title: "Access denied" after IP address change (WAMP; Drupal)
ThreadText: # "Access denied" after IP address change (WAMP; Drupal)
  
  (Asked by: username_0 on 2016-01-22)
  
  I wasted hours of searching Google back and forth, and found no solution:
  CiviCRM is set up as an internal only CRM system for an organisation (i.e. IP address 192.168.178.36) - so far, so good. Now I took the server with me to work on CiviCRM, so I changed the IP address to 192.168.2.36 accordingly.
  
  I've changed Apaches httpd.conf, and Apache runs without issues. Drupal seems to come up fine, but whenever I want to access CiviCRM via
  <http://192.168.2.36/q=civicrm/dashboard>
  the website answers with
  
  a) the former IP address (192.168.178.36) in the header of the result page,
  
  b) "Access denied - you are not authorized to access this page."
  
  I deleted the content of all drupal cache tables, I deleted the content of the "templates\_c" directory - no success :-(
  
  Please, can someone point me into the right direction?
  
  Regards
  
  Bernhard
  
  **Tags:** drupal, urls, civicrm.settings.php
  
  > **Comments:**
  > **username_1**: Did you change the url (or IP in your case) in both the sites/default/civicrm.settings.php and settings.php files?  
  > **username_0**: Yes, both `$base_url` (for Drupal) and `CIVICRM_UF_BASEURL` (for CiviCRM) point to "`http://192.168.2.36`"  
  > **username_1**: Not to beat a dead horse, but if you haven't search through both those files for your old ip address, you should.  It may appear other things like CIVICRM_TEMPLATE_COMPILEDIR and civicrm_root.  
  > **username_1**: A work around might be to put a cheap router between your server and the work network.  That way you can have the same IP address.  
  > **username_1**: What you're trying to do isn't really isn't' much different from creating a test env minus the whole copying of db and code trees.    There are lots of guides out there on all the things you need to do.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-12-22. Score: 1
  
  Setting up a new database isn't necessary. For folks who encounter similar issues in the future: after checking your `BASE_URL` setting in `civicrm.settings.php`, delete your `templates_c` folder ([found here](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories)), clear all CiviCRM caches, and rebuild your menus. Details on the latter two items [are available here](https://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers).
  
  
  ---
  
  ### Answer by username_0 on 2016-01-26. Score: -1
  
  The answer is hidden deep in the database. I tried to install Drupal again (just the program), and the same message came up. When I then created a new database, everything works as expected.
  
  So be warned that you will need to setup a new database if you plan to move the server to a new location!
  
  > **Comments:**
  > **username_3**: Did you try "Cleanup Caches" at civicrm/admin/setting/updateConfigBackend?reset=1 ?  
  > **username_4**: "... you will need to setup a new database if you plan to move the server to a new location!" - That's definitively not true - we moved all our projects 3-4 dozen from one data center to another 2y ago and new IPs all around - not saying it's easy but it definitively takes some getting used to and practice moving Drupal/CiviCRM projects around.  
  
  ---
  
  