civicrm-dev.wikimedia.org

From Wikitech
Jump to: navigation, search

CRM and donations records.

Hardware

  • srv9 - web frontend (SSL)
  • db1008 - (master of fundraising db cluster) backend

Software

  • Apache+PHP
  • Drupal: Version 5.7
    • CiviCRM: Version 2.2.8
    • Customization of CiviCRM by David Strauss, as listed below:

Usage

  • This version went live August 2008 as the development server

Installation

dev.civicrm is a clone of civicrm circa August 2008 and retains the same confiugration. All application files are stored under

/srv/org.wikimedia.civicrm.dev
The only changes that exist between the two installations are present in
sites/default/civicrm.settings.php

They includle

$civicrm_root
CIVICRM_TEMPLATE_COMPILEDIR
CIVICRM_UF_BASEURL
CIVICRM_UF_DSN
and within
sites/default/settings.php

for

$db_url 
 

New Database names are drupal5_dev & civicrm_dev

Databases

To access the databases, ssh to the dev server:

ssh -A civicrm-dev.wikimedia.org

The dev databases are hosted on db1008.eqiad.wmnet. The databases are dev_drupal (for the drupal installation) and dev_civicrm (for the CiviCRM installation).

mysql -h db1008.eqiad.wmnet -p
show databases;
use dev_civicrm;
show tables;

To dump the current database:

mysqldump -h db1008.eqiad.wmnet -u <username> -p --single-transaction civicrm > civicrmdump.sql

Updating development copy paths following a database clone

After syncing the database with the live data, follow the following instructions:

The non-appearance of the search box on the development site is a result of a Drupal bug (maybe?) in block handling that doesn't like block types to change without a module re-install. This happens because we clone over the CiviCRM database but not the Drupal one.

CiviCRM code

To edit or update the CiviCRM code used by the dev server:

ssh -A civicrm.wikimedia.org
cd /srv/org.wikimedia.civicrm.dev

Most of the modules can be found at:

cd /srv/org.wikimedia.civicrm.dev/sites/all/modules