User:MEpps (WMF)/donation pipeline setup

Before you get too far down this list, see Installing the software stack on the fundraising tech team page, where we explain how to accomplish all of these things the easy way, with Vagrant.

Installing CRM
Clone the repo:

git clone https://gerrit.wikimedia.org/r/wikimedia/fundraising/crm

cd crm

git submodule update --init

Once you have your virtual host setup and pointing to the directory, you can run through the installer for drupal to generate a settings.php file but you'll want to add these lines and fill in your usernames and passwords so it can find the additional databases:

$databases = array (

'default' =>

array (

'default' =>

array (

'database' => 'drupal',

'username' => 'drupal',

'password' => 'XXXX',

'host' => 'localhost',

'port' => '' ,

'driver' => 'mysql',

'prefix' => '' ,

),

),

'donations' =>

array (

'default' =>

array (

'database' => 'drupal',

'username' => 'drupal',

'password' => 'XXXX',

'host' => 'localhost',

'port' => '' ,

'driver' => 'mysql',

'prefix' => '' ,

),

),

'fredge' =>

array (

'default' =>

array (

'database' => 'fredge',

'username' => 'drupal',

'password' => 'XXXX',

'host' => 'localhost',

'port' => '' ,

'driver' => 'mysql',

'prefix' => '' ,

),

),

'smashpig' =>

array (

'default' =>

array (

'database' => 'smashpig',

'username' => 'drupal',

'password' => 'XXXX',

'host' => 'localhost',

'port' => '' ,

'driver' => 'mysql',

'prefix' => '' ,

),

),

'logging' =>

array (

'default' =>

array (

'database' => 'crm_log',

'username' => 'drupal',

'password' => 'XXXX',

'host' => 'localhost',

'port' => '' ,

'driver' => 'mysql',

'prefix' => '' ,

),

),

);

Installing PaymentsWiki
Clone the repo

git clone https://gerrit.wikimedia.org/r/mediawiki/core

cd core

git checkout fundraising/REL1_27

git submodule update --init --recursive

cd skins

git clone https://git.wikimedia.org/git/mediawiki/skins/Vector.git

Once you have your virtual host pointing to the directory, you can run through the installer to get LocalSettings.php.

rsyslog.d
If you are running your payments environment in ubuntu, we recommend setting up the log buckets in rsyslog.d in largely the same way we set them up on the payments cluster.
 * in /etc/rsyslog.d, create a file called 60-payments.conf
 * Insert the following code into 60-payments.conf