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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Configuration file suggestion
Pages: [1]

Author Topic: Configuration file suggestion  (Read 1522 times)

bob_bingham

  • Guest
Configuration file suggestion
August 09, 2009, 06:51:02 am
Hi all,
First experience using civiCRM. After many hours of frustration simply moving an installation from one server to another, I finally discovered that the fatal error that was causing civiCRM to not work with Drupal and the new server, and was in fact causing a fatal error logged only by Apache as a "segmentation fault", was caused by old paths existing in the config_backend field in the database.

I'll update the wiki about moving servers, because there was not really a good warning for this, no errors that I received that were particularly helpful, and no real helpful description of how to deal with it in any od th docs.

Is there a good reason why some configuration settings exist in the database and others in a file?

For ease of migration, installation and tweaking, it seems to me that all the configuration information should live in a file - easy to edit, easy to read and when things don't work right, there is just one place to look.

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: Configuration file suggestion
August 09, 2009, 07:23:41 am

hey bob:

1. did you read and follow the instructions at:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

2. I do agree with deepaks that we need to simplify and make this procedure a bit more seamless. On the other hand, operating in the context of a CMS puts some constraints

3. We used to have all the settings in a file. However most of our users are more comfortable editing settings in a database rather than a file. Plus having multiple settings is much harder in a file

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

bob_bingham

  • Guest
Re: Configuration file suggestion
August 27, 2009, 05:52:22 am
yes I did of course read this:
http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

I found that the instructions did not work and in fact updated that very document to try to provide some hope to somebody in the same situation as I am in. (looks like somebody else removed the changes I made - bummer)

here is information about what I encountered and how I dealt with it - not sure why somebody removed this info from the wiki:
http://forum.civicrm.org/index.php/topic,9213.msg39712.html#msg39712

And if you could please help me with one last thing on this:
These paths (to css and jquery, etc) are still all broken when I try to open civicrm pages:
<script type="text/javascript" src="packages/jquery/plugins/flexigrid.js"></script>

On the previous server the paths were correct:
<script type="text/javascript" src="/sites/all/modules/civicrm/packages/jquery/plugins/flexigrid.js"></script>

Now that I can access http://sfgirlschorus.candhprojects.com/civicrm/admin/setting?reset=1
I can change the path to the "Resource URLS" but despite having the path correct here, the path packages/jquery/plugins/flexigrid.js does not seem to change.

What do I need to do?



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: Configuration file suggestion
August 27, 2009, 06:09:12 am

Can you get on IRC and we can help debug/fix.

Would be good to get ssh access to the machine, in case there is a bug and we need to track it down

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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Configuration file suggestion

This forum was archived on 2017-11-26.