{"id":755,"date":"2014-03-01T19:38:51","date_gmt":"2014-03-02T03:38:51","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=755"},"modified":"2014-03-01T19:38:51","modified_gmt":"2014-03-02T03:38:51","slug":"virtual-box-linux-mint-drupal-and-civicase-part-4","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2014\/03\/01\/virtual-box-linux-mint-drupal-and-civicase-part-4\/","title":{"rendered":"Virtual Box, Linux Mint, Drupal and civiCASE &#8212; Part 4"},"content":{"rendered":"<p>Here we will set up Drupal, the framework for CiviCRM<br \/>\n<!--more--><\/p>\n<h2>Setup Drupal<\/h2>\n<p>Starting at http:\/\/localhost or your vpn ip address that you set up before<\/p>\n<p>Choose Standard install, save<\/p>\n<p>======================<\/p>\n<p>Choose language, save<\/p>\n<p>======================<\/p>\n<p>Setup Database section<br \/>\n<a href=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/Drupal_database_setup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-906\" src=\"http:\/\/systemsolver.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/Drupal_database_setup-300x247.png\" alt=\"Drupal_database_setup\" width=\"361\" height=\"298\" srcset=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/Drupal_database_setup-300x247.png 300w, https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/Drupal_database_setup.png 578w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/a><\/p>\n<p>In\u00a0 my case, Drupal got stuck but it did create the database tables. I found it necessary to go back to install.php, work through the first couple of screens, and then Drupal popped past the database setup and got to the next section okay.<\/p>\n<p>=========================<\/p>\n<p>Site Information section<\/p>\n<p>Again Drupal got stuck, but this time going back didn&#8217;t help.<\/p>\n<p>I used PHPmyAdmin to drop the drupal database, then used the command lines to recreate the database.<\/p>\n<p>When I went back to the Drupal install.php script page it flowed like butter. Weird.<\/p>\n<p>===================<\/p>\n<p>Open the following folder as root<br \/>\n\/etc\/mysql\/<\/p>\n<p>Open the following file for editing<br \/>\nmy.cnf<\/p>\n<p>You will find a line like this at approximately line 47:<br \/>\n<code><span class=\"pln\">bind-address <\/span><span class=\"pun\">=<\/span><span class=\"lit\">127.0.0.1<\/span><\/code><\/p>\n<p>comment that line out like follows:<br \/>\n<code><span class=\"pln\">#bind-address <\/span><span class=\"pun\">=<\/span><span class=\"lit\">127.0.0.1<\/span><\/code><\/p>\n<p>Now restart the important services:<\/p>\n<p><code>sudo service apache2 restart<br \/>\nsudo service mysql restart<br \/>\nsudo \/etc\/init.d\/mysql restart<\/code><\/p>\n<p>===================<\/p>\n<p>Open as root: \/etc\/apache2\/ and open for editing: apache2.conf<\/p>\n<p style=\"padding-left: 30px;\">Search for the section &lt;Directory \/var\/www\/&gt; and change AllowOverride\u00a0 to \u2018All\u2019 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>Now restart apache2<\/p>\n<p style=\"padding-left: 30px;\"><code>sudo service apache2 restart<\/code><\/p>\n<p>===================<\/p>\n<p>Congratulations<\/p>\n<p>Visit your site<\/p>\n<p>===================<\/p>\n<h1>Setup CiviCRM<\/h1>\n<p>===================<\/p>\n<p>Download the current stable release of CiviCRM <a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=177914\">from their SourceForge.net project page<\/a>. Do NOT download or use .module or tarball files from drupal.org &#8211; they are placeholder files only.<\/p>\n<p>Extract the downloaded file to:<\/p>\n<p>\/var\/www\/drupal\/sites\/all\/modules\/contrib\/<\/p>\n<p>You will have to create the \/contrib\/ folder.<\/p>\n<p>===================<\/p>\n<p>Give permission for files to be written.<\/p>\n<p>sudo chown -R www-data:www-data \/var\/www\/drupal\/sites\/default<br \/>\nsudo chmod u=rx,g=rx,o= \/var\/www\/drupal\/sites\/default<br \/>\nsudo chmod u=rwx,g=rwx,o= \/var\/www\/drupal\/sites\/default\/files<br \/>\nmight not be neccessary: sudo chmod u=r,g=r,o= \/var\/www\/drupal\/sites\/default\/*.php<\/p>\n<p>Info from: <a href=\"http:\/\/forum.civicrm.org\/index.php\/topic,4994.0.html\">http:\/\/forum.civicrm.org\/index.php\/topic,4994.0.html<\/a><\/p>\n<p>Now proceed with the next section.<\/p>\n<p>===================<\/p>\n<p>Now go to:<\/p>\n<p><a href=\"http:\/\/10.0.0.23\/sites\/all\/modules\/contrib\/civicrm\/install\/index.php\">http:\/\/10.0.0.23\/sites\/all\/modules\/contrib\/civicrm\/install\/index.php<\/a><\/p>\n<p>I got to a page that looked like this<\/p>\n<p><a href=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-module-install-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-935\" src=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-module-install-1.png\" alt=\"CiviCRM module install 1\" width=\"436\" height=\"156\" srcset=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-module-install-1.png 893w, https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-module-install-1-300x107.png 300w, https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-module-install-1-768x274.png 768w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/a><\/p>\n<p>I clicked where it said &#8216;Install&#8217; in blue and I got the next screen.<\/p>\n<p><a href=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-936\" src=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-settings.png\" alt=\"CiviCRM database settings\" width=\"339\" height=\"289\" srcset=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-settings.png 468w, https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-settings-300x256.png 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/a><\/p>\n<p>I set this up so the address 10.0.0.23 could be reached via my VirtualPrivateNetwork.<\/p>\n<p>I had one last set of permissions to check. If you scroll down to the bottom of the setup page you&#8217;ll see where problems are. Here&#8217;s what fixed mine.<\/p>\n<p><a href=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-final-permissions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-938\" src=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-final-permissions.png\" alt=\"CiviCRM database final permissions\" width=\"471\" height=\"409\" srcset=\"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-final-permissions.png 607w, https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-content\/uploads\/2014\/03\/CiviCRM-database-final-permissions-300x260.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/a><\/p>\n<p>Your report should show no areas of red if everything is good.<\/p>\n<p>=====================<\/p>\n<p>Now go to the top of the page and click on &#8220;Check Requirements and Install CiviCRM<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>=====================<\/p>\n<p><em><strong>Now put back the permissions as they should be:<\/strong><\/em><\/p>\n<p>sudo chown -R www-data:www-data \/var\/www\/drupal\/sites\/default<br \/>\nsudo chmod u=rx,g=rx,o= \/var\/www\/drupal\/sites\/default<br \/>\nsudo chmod u=rwx,g=rwx,o= \/var\/www\/drupal\/sites\/default\/files<br \/>\nsudo chmod u=r,g=r,o= \/var\/www\/drupal\/sites\/default\/*.php<\/p>\n<p>Although that last command will probably not find any .php files so it will fail.<\/p>\n<p>=====================<\/p>\n<p>Fix errors getting extensions for civiCRM:<\/p>\n<p>sudo apt-get install php5-curl<br \/>\nsudo \/etc\/init.d\/apache2 restart<\/p>\n<p>In the following page insert the custom extensions folder i.e. \/var\/www\/drupal\/sites\/all\/civicrm_extensions<br \/>\n<a href=\"http:\/\/localhost\/index.php?q=civicrm\/admin\/setting\/url&amp;reset=1&amp;civicrmDestination=%2Findex.php%3Fq%3Dcivicrm%2Fadmin%2Fextensions%26amp%3Breset%3D1\">http:\/\/localhost\/index.php?q=civicrm\/admin\/setting\/url&amp;reset=1&amp;civicrmDestination=%2Findex.php%3Fq%3Dcivicrm%2Fadmin%2Fextensions%26amp%3Breset%3D1<\/a><\/p>\n<p>====================<\/p>\n<p>Use the <a href=\"http:\/\/localhost\/drupal\/index.php?q=civicrm\/admin\/configtask&amp;reset=1\">Configuration Checklist<\/a> to review and configure settings for your new site<\/p>\n<p>but that&#8217;s for the next post.<\/p>\n<h3><a title=\"Virtual Box, Linux Mint, Drupal and civiCASE \u2014 Part 5\" href=\"http:\/\/systemsolver.com\/StatlerBlog\/index.php\/2014\/03\/02\/virtual-box-linux-mint-drupal-and-civicase-part-5\/\">\u00a0Click for Part 5<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Here we will set up Drupal, the framework for CiviCRM<\/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-755","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\/755","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=755"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/755\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}