From c9b8b31eb9629302b9d17d1ef156dcc904b5a4b9 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Tue, 16 Jan 2018 13:42:24 +0200 Subject: [PATCH] Updated Setting up CiviCRM (markdown) --- Setting-up-CiviCRM.md | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/Setting-up-CiviCRM.md b/Setting-up-CiviCRM.md index 51256fe..7033d53 100644 --- a/Setting-up-CiviCRM.md +++ b/Setting-up-CiviCRM.md @@ -45,7 +45,7 @@ $ tar xvzf civicrm-4.7.29-drupal.tar.gz -C cms/sites/all/modules/ Setup the correct permissions (as the *admin* user): ``` -$ sudo chown -R webadmin:www-data /srv/webadmin/cms/sites/default +$ sudo chown -R www-data:webadmin /srv/webadmin/cms/sites/default $ sudo chmod g+w /srv/webadmin/cms/sites/default ``` @@ -71,31 +71,14 @@ Then press the 'Re-check Requirements' button. If you get the green assurance th ## Post-install steps -If we click the "System Status: Error" link at the bottom of the CiviCRM page we will see these errors: - -1. Cron Not Running - No cron runs have been recorded. -2. Configure Default Mailbox - Please configure a default mailbox for CiviMail. -3. Complete Setup - Please enter your organization's name, primary address, and default FROM Email Address (for system-generated emails). -4. Security Warning - The CiviCRM debug log should not be downloadable. -5. Private Files Readable - Files in the data directory (/srv/webadmin/cms/sites/default/files/civicrm/upload/) should not be downloadable. -6. Private Files Readable - Files in the data directory (/srv/webadmin/cms/sites/default/files/civicrm/custom/) should not be downloadable. - ### Setup cron -Under the *webadmin* run `crontab -e` and add this cronjob: +Under the *root* user run `crontab -e` and add this cronjob: ``` 5 * * * * php /srv/webadmin/cms/sites/all/modules/civicrm/bin/cli.php -u cmsadmin -p MyDrupalAdminPass -e Job -a execute ``` - - ### Restrict access to private files Add the following configuration in */etc/nginx/sites-available/cms*: @@ -123,6 +106,8 @@ Add the following: * Drupal Users Table Name: **users** * Sync CMS Email: **Enabled** +Before we finish, click the "System Status: Error" link at the bottom of the CiviCRM and look for errors or warnings. + References ---------- * https://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades