CiviCRM for Drupal 8 installation notes » History » Version 4
Jon Goldberg, 12/24/2018 08:51 PM
1 | 1 | Jon Goldberg | # CiviCRM for Drupal 8 installation notes |
---|---|---|---|
2 | |||
3 | * Install Drupal 8 as normal. |
||
4 | * Follow [the instructions on this gist](https://gist.github.com/dsnopek/56311dbea347874e75180883efabb620). |
||
5 | * Copy files to `<webroot>/libraries/civicrm` by using the [script on this ticket](https://lab.civicrm.org/dev/drupal/issues/9). |
||
6 | * [Hack] To get CKEditor/kcfinder working, copy it to libraries/civicrm: `cp -r $asset_source/packages/kcfinder $asset_dest/packages/`. |
||
7 | 2 | Jon Goldberg | * To get `extern` scripts loading correctly, run this (to create a *second* `settings_location.php`): |
8 | |||
9 | ```bash |
||
10 | cat << EOF > $asset_source/settings_location.php |
||
11 | <?php |
||
12 | |||
13 | define('CIVICRM_CONFDIR', '../../../web/sites'); |
||
14 | EOF |
||
15 | ``` |
||
16 | 3 | Jon Goldberg | |
17 | Alternatively, set BOTH `settings_location.php` values to an absolute path, e.g. `/home/jon/local/agbud8/htdocs/web/sites/default`. |
||
18 | 4 | Jon Goldberg | * To load images in CKEditor, modify `<webroot>/libraries/civicrm/packages/integration/civicrm.php`. |
19 | At line 60, add: |
||
20 | |||
21 | ```php |
||
22 | case 'Drupal8': |
||
23 | $auth_function = 'authenticate_drupal8'; |
||
24 | break; |
||
25 | ``` |
||
26 | |||
27 | Somewhere below that, add: |
||
28 | |||
29 | ```php |
||
30 | function authenticate_drupal8($config) { |
||
31 | return true; |
||
32 | } |
||
33 | ``` |