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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing domains
Pages: [1]

Author Topic: Changing domains  (Read 1673 times)

critical15

  • Guest
Changing domains
June 06, 2007, 02:54:14 pm
Hi - with a perfectly running CiviCRM site, how can I change the associated domain name?  The new domain name is configured to resolve to the same location on my server.
I've made one change to civicrm.settings.php, and then there are the resource URLs in "Administer CiviCRM", but I'm still getting server 500 errors.  What are the other necessary changes?
Thanks in advance.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Changing domains
June 06, 2007, 03:10:50 pm

i'm assuming this is drupal, so make sure u do the foll:

1. change base_url in settings.php (drupal)
2. change CIVICRM_UF_BASEURL in civicrm.settings.php to match the above
3. fix the resource url
4. empty sessions table in drupal

u might also need to empty your cookies/cache on your local browser in some cases depending on how domain structure etc (I dont completely understand this, but it messes stuff up sometimes). alternatively u can give a unique cookie name to your session (rather than the default PHPSESSID)

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

critical15

  • Guest
Re: Changing domains
June 06, 2007, 07:42:46 pm
Thanks for the advice, though that didn't quite do it.  I made all 4 changes, and cleared all cookies and cache, and I still get the server 500 errors.  could it have been anything else? 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Changing domains
June 06, 2007, 09:56:18 pm

In general for any internal server 500 errors or white screen errors you need to check the apache error log. That will give you the reason why the error is being thrown. I think there are some php settings that you can use to show the errors on screen (display_errors, check the php manual for more specific info)

If you dont have access to the logs or the php config, it makes it more of a guessing game, which does not help much :(

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing domains

This forum was archived on 2017-11-26.