CiviCRM for Drupal 8 installation notes » History » Version 7
Jon Goldberg, 02/13/2019 09:54 PM
1 | 5 | Jon Goldberg | {{last_updated_at}} by {{last_updated_by}} |
---|---|---|---|
2 | 1 | Jon Goldberg | # CiviCRM for Drupal 8 installation notes |
3 | |||
4 | 6 | Jon Goldberg | * Install Drupal 8 as normal: From the folder above your eventual webroot, run: `composer create-project drupal-composer/drupal-project:8.x-dev htdocs --stability dev --no-interaction` |
5 | 1 | Jon Goldberg | * Follow [the instructions on this gist](https://gist.github.com/dsnopek/56311dbea347874e75180883efabb620). |
6 | * Copy files to `<webroot>/libraries/civicrm` by using the [script on this ticket](https://lab.civicrm.org/dev/drupal/issues/9). |
||
7 | * [Hack] To get CKEditor/kcfinder working, copy it to libraries/civicrm: `cp -r $asset_source/packages/kcfinder $asset_dest/packages/`. |
||
8 | 2 | Jon Goldberg | * To get `extern` scripts loading correctly, run this (to create a *second* `settings_location.php`): |
9 | |||
10 | ```bash |
||
11 | cat << EOF > $asset_source/settings_location.php |
||
12 | <?php |
||
13 | |||
14 | define('CIVICRM_CONFDIR', '../../../web/sites'); |
||
15 | EOF |
||
16 | ``` |
||
17 | 3 | Jon Goldberg | |
18 | Alternatively, set BOTH `settings_location.php` values to an absolute path, e.g. `/home/jon/local/agbud8/htdocs/web/sites/default`. |
||
19 | 7 | Jon Goldberg | * To load images in CKEditor, modify `<webroot>/libraries/civicrm/packages/kcfinder/integration/civicrm.php`. |
20 | 4 | Jon Goldberg | At line 60, add: |
21 | |||
22 | ```php |
||
23 | case 'Drupal8': |
||
24 | $auth_function = 'authenticate_drupal8'; |
||
25 | break; |
||
26 | ``` |
||
27 | |||
28 | Somewhere below that, add: |
||
29 | |||
30 | ```php |
||
31 | function authenticate_drupal8($config) { |
||
32 | return true; |
||
33 | } |
||
34 | 5 | Jon Goldberg | ``` |
35 | |||
36 | * Add the following to `civicrm.settings.php`: |
||
37 | |||
38 | ```php |
||
39 | $civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/'; |
||
40 | $civicrm_paths['civicrm.root']['url'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/'; |
||
41 | $civicrm_setting['domain']['userFrameworkResourceURL'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/'; |
||
42 | $civicrm_paths['cms.root']['path'] = '/var/www/agbud8.megaphonetech.com/htdocs/web'; |
||
43 | 4 | Jon Goldberg | ``` |