{"id":778,"date":"2014-03-02T00:55:11","date_gmt":"2014-03-02T08:55:11","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=778"},"modified":"2014-03-02T00:55:11","modified_gmt":"2014-03-02T08:55:11","slug":"virtual-box-linux-mint-drupal-and-civicase-part-5","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2014\/03\/02\/virtual-box-linux-mint-drupal-and-civicase-part-5\/","title":{"rendered":"Virtual Box, Linux Mint, Drupal and civiCASE &#8212; Part 5"},"content":{"rendered":"<p>Here we will set up the framework for CiviCase<br \/>\n<!--more--><\/p>\n<h2>Setup CiviCRM<\/h2>\n<h3>SMTP Mail settings<\/h3>\n<p>Before continuing with the CiviCRM configuration, let&#8217;s install a module that helps setup the SMTP settings to deliver emails.<\/p>\n<p>Download the SMTP Authentication Support module here: <a href=\"https:\/\/drupal.org\/project\/smtp\">https:\/\/drupal.org\/project\/smtp<\/a><\/p>\n<p>Unzip it to the desktop then move it to\u00a0 <strong>\/var\/www\/drupal\/sites\/all\/modules\/smtp<\/strong><\/p>\n<p>Now open Drupal\/Modules and enable the module<\/p>\n<p>&nbsp;<\/p>\n<p>Fill in required settings on the Administer -&gt; Configuration -&gt; System -&gt; SMTP Authentication Support page.<\/p>\n<p>When finished filling out the required information you can send a test email from the same page.<\/p>\n<h3>CiviCRM Installer<\/h3>\n<p>Download the CiviCRM gz file from <a href=\"https:\/\/civicrm.org\/download\">https:\/\/civicrm.org\/download<\/a><\/p>\n<p>Un pack the file and put the folder civicrm into \/var\/www\/html\/sites\/all\/modules\/<\/p>\n<p>Now enable the module. Scroll down quite a way until you get to the civiCRM section.<\/p>\n<p>Once enabled somewhere is a link to install the module.<\/p>\n<h3>Configuration Checklist<\/h3>\n<p>I had two warnings about folders not being downloadable. I went into \/var\/www\/html\/sites\/default\/files\/ then right-clicked on civicrm\/ and selected &#8220;open as root&#8221;. Then for both the \/upload\/ and \/custom\/ folders I right-clicked, selected properties\/permissions and set &#8220;others&#8221; to &#8216;none&#8217;<\/p>\n<p><a href=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM_upload_folder_permissions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-914\" src=\"http:\/\/systemsolver.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM_upload_folder_permissions-268x300.png\" alt=\"CiviCRM_upload_folder_permissions\" width=\"268\" height=\"300\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/drupal\/index.php?q=civicrm\/admin\/configtask&amp;reset=1\">http:\/\/localhost\/drupal\/index.php?q=civicrm\/admin\/configtask&amp;reset=1<\/a><\/p>\n<p>As you go through each item it will turn green to indicate you visited that page<\/p>\n<h4>Site Configuration<\/h4>\n<p>Localization: Nothing much to change here<\/p>\n<p>Organization Address and Contact Info:<br \/>\nName:<br \/>\nDescription:<br \/>\nMail settings:<br \/>\nOrganization address:<br \/>\nOrganization contact information: email and phone number<\/p>\n<p>Enable Components: Add CiviCase and disable CiviContribute and CiviPledge<\/p>\n<h4>Viewing and Editing Contacts<\/h4>\n<p>Display preferences:<\/p>\n<p style=\"padding-left: 30px;\">Viewing Contacts &#8212; adjust as shown<\/p>\n<p style=\"padding-left: 30px;\">Viewing Smart Groups &#8212; accept default<\/p>\n<p style=\"padding-left: 30px;\">Editing Contacts &#8212; adjust as shown<\/p>\n<p style=\"padding-left: 30px;\">Contact Search &#8212; adjust as shown<\/p>\n<p style=\"padding-left: 30px;\">Contact dashboard &#8212; doesn&#8217;t matter because contacts don&#8217;t have access<\/p>\n<p style=\"padding-left: 30px;\">All other&#8217;s should work as default<\/p>\n<h4>Addresses<\/h4>\n<p>Adjust as shown, other settings okay at default<\/p>\n<p>&nbsp;<\/p>\n<h4>Maping and Geocoding &#8212; not used<\/h4>\n<h4>Search Settings &#8212; accept defaults<\/h4>\n<h4>Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.) &#8212; accept defaults<\/h4>\n<h4>Contact Types &#8212; treat under customization (Part 6)<\/h4>\n<h4>Outbound Mail &#8212; treat under customization (Part 6) some problem here<\/h4>\n<h4>From Email Address Options &#8212; treat under customization (Part 6)<\/h4>\n<h4>\u00a0Online Contributions \/ Online Membership Signup \/ Online Event Registration &#8212; not used<\/h4>\n<h4>Organize your contacts &#8212; treat under customization (Part 6)<\/h4>\n<p>&nbsp;<\/p>\n<h3>Errors<\/h3>\n<p>All that done, and now there are three errors being reported<\/p>\n<p><strong>One issue I expected because the Outbound Email settings I<\/strong> knew were weird.<\/p>\n<p>This one was fixed by clickingo n the Go button, then entering information about the email server.<\/p>\n<p>The other two issues had to do with file read permissions.<\/p>\n<p><strong>Here&#8217;s how I fixed the upload directory issue:<\/strong><\/p>\n<p>Open as root: \/etc\/apache2\/ and open for editing: apache2.conf<br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/5046100\/prevent-access-to-files-in-a-certain-folder\">http:\/\/stackoverflow.com\/questions\/5046100\/prevent-access-to-files-in-a-certain-folder<\/a><\/p>\n<p style=\"padding-left: 30px;\">Search for the section &lt;Directory \/var\/www\/&gt; and change AllowOverride\u00a0 to &#8216;All&#8217; as shown below.<\/p>\n<p style=\"padding-left: 30px;\">&lt;Directory \/var\/www\/&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride All<br \/>\nRequire all granted<\/p>\n<p>Next I opened the folders that I was told were downloadable and edited the .htaccess file.<\/p>\n<p style=\"padding-left: 30px;\">For example:<\/p>\n<p style=\"padding-left: 30px;\">I opened as root: \/var\/www\/drupal\/sites\/default\/files\/civicrm\/upload\/<br \/>\nI used the view menu item to select &#8216;view hidden file&#8217;I opened .htaccess to edit and add the following:<\/p>\n<p style=\"padding-left: 30px;\">&lt;Files &#8220;*&#8221;&gt;<br \/>\nOrder allow,deny<br \/>\nDeny from all<br \/>\n&lt;\/Files&gt;<\/p>\n<p>When I researched the Security Warnings I found that there is a bug in CiviCRM related to these warnings. I tested and mine were open. Here&#8217;s the browser address I used for the test:<\/p>\n<p style=\"padding-left: 30px;\">http:\/\/10.0.0.23\/sites\/default\/files\/civicrm\/upload\/latest-version-cache.txt<\/p>\n<p style=\"padding-left: 30px;\">Originally it opened the file, after making the above changes it did not download.<\/p>\n<p>Here&#8217;s a link to a discussion of the security risks and possible solutions<\/p>\n<p><a href=\"https:\/\/civicrm.org\/advisory\/civi-sa-2014-001-risk-information-disclosure\">https:\/\/civicrm.org\/advisory\/civi-sa-2014-001-risk-information-disclosure<\/a><\/p>\n<p>Here&#8217;s a link to a topic that talks about the issues<\/p>\n<p><a href=\"http:\/\/forum.civicrm.org\/index.php?topic=31570.new;topicseen#new\">http:\/\/forum.civicrm.org\/index.php?topic=31570.new;topicseen#new<\/a><\/p>\n<p>And here&#8217;s the topic that is referred to in that previous link<\/p>\n<p><a href=\"http:\/\/wiki.civicrm.org\/confluence\/display\/CRMDOC\/checkUploadsAreNotAccessible\">http:\/\/wiki.civicrm.org\/confluence\/display\/CRMDOC\/checkUploadsAreNotAccessible<\/a><\/p>\n<p>Here&#8217;s a link to the bug page at CiviCRM<\/p>\n<p><a href=\"http:\/\/issues.civicrm.org\/jira\/browse\/CRM-14210\">http:\/\/issues.civicrm.org\/jira\/browse\/CRM-14210<\/a><\/p>\n<h4>Now ready for customization<\/h4>\n<h3><a title=\"Virtual Box, Linux Mint, Drupal and civiCASE \u2014 Part 6\" href=\"http:\/\/systemsolver.com\/StatlerBlog\/index.php\/2014\/03\/03\/virtual-box-linux-mint-drupal-and-civicase-part-6\/\">\u00a0Click for Part 6<\/a><\/h3>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we will set up the framework for CiviCase<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,6],"tags":[],"class_list":["post-778","post","type-post","status-publish","format-standard","hentry","category-civicrm","category-general","category-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=778"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/778\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}