rapid_install.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. Installation Method #1: Rapid Installation
  2. ==========================================
  3. Before installing via the rapid installation process please ensure drush is installed, and the server is setup. Rapid Installation works with Tripal v3.0-rc2 (release candidate 2) and later. If you are using a previous version of Tripal, please proceed to the step-by-step instructions.
  4. Database Setup
  5. ---------------
  6. Before we can install Tripal we must have a database ready for it. In the server setup instructions were provided to set up a PostgreSQL database server. Now, we need to create the Drupal database. To do so we must first become the PostgreSQL user.
  7. .. code-block:: bash
  8. sudo su - postgres
  9. Next, create the new 'drupal' user account. This account will not be a "superuser" nor allowed to create new roles, but should be allowed to create a database.
  10. .. code-block:: bash
  11. createuser -P drupal
  12. When requested, enter an appropriate password. Finally, create the new database:
  13. .. code-block:: bash
  14. createdb drupal -O drupal
  15. We no longer need to be the postgres user so exit
  16. .. code-block:: bash
  17. exit
  18. Tripal Installation
  19. -------------------
  20. .. note::
  21. The user's guide makes use the environmental variable ``$DRUPAL_HOME`` to track where Drupal will be installed. The default location for Drupal is ``/var/www/html``, but set this variable to wherever you would like your Drupal site installed. For example, older Ubuntu setups use ``/var/www`` instead. To use ``/var/www/html``, execute the below command, or, replace the path with your desired location. **YOU MUST SET THIS VARIABLE FOR THE BELOW GUIDE TO SUCCEED**.
  22. .. code-block:: bash
  23. DRUPAL_HOME=/var/www/html
  24. Navigate to your Drupal install directory.
  25. .. code-block:: bash
  26. cd $DRUPAL_HOME
  27. .. note::
  28. Make sure you have write permissions within this directory.
  29. Clone the tripal_install project using the ``git`` command and move the contents up one level into the web document directory:
  30. .. code-block:: bash
  31. git clone https://github.com/tripal/tripal_install.git
  32. mv tripal_install/* ./
  33. Begin the installation for a generic installation with the following command:
  34. .. code-block:: bash
  35. drush --include=. tripal-generic-install
  36. From this point onward, you will be asked a series of questions in the terminal window. First you will be asked for the name of the site (this will appear at the top of your site after creation), the site administrator's email address, a username for the administrator to log on, and the password for the administrator:
  37. ::
  38. Name of the site : Tripal
  39. Admin email for the site : admin@gmail.com
  40. Name for your admin user on the site : admin
  41. Password for the admin user, needs to be complex including numbers and characters, example P@55w0rd: P@55w0rd
  42. These are the site settings provided, please review and confirm they are correct
  43. Site Name: Tripal
  44. Site email address: admin@gmail.com
  45. Administrator username: admin
  46. Administrator password: P@55w0rd
  47. Is this information correct? (y/n): y
  48. Next, you will be asked for the database information: database name, database username, database user password, host, and port. The database name and user should match what you created in the previous section (i.e. database name = 'drupal' and database user = 'drupal'). The 'host' is the name of the server or its IP address, and the port is a numerical value that PostgreSQL uses for communication. By default PostgreSQL uses the port 5432. If a mistake is made you can make corrections as shown below:
  49. ::
  50. Now we need to setup Drupal to connect to the database you want to use. These settings are added to Drupal‘s settings.php file.
  51. database name: database
  52. postgres username: drupal
  53. postgres password: drupal
  54. host, like localhost or 127.0.0.1: 127.0.01
  55. port, usually S432: 5432
  56. This is the database information provided, please review and confirm it is correct:
  57. Database name: database
  58. Database username: drupal
  59. Database user password: drupal
  60. Database host: 127.0.01
  61. Database port: 5432
  62. Is this information correct? (Y/n): n
  63. Now we need to setup Drupal to connect to the database you want to use. These settings are added to Drupal‘s settings.php file.
  64. database name: database
  65. postgres username: drupal
  66. postgres password: drupal
  67. host, like localhost or 127.0.0.1: 127.0.0.1
  68. port, usually S432: 5432
  69. This is the database information provided, please review and confirm it is correct:
  70. Database name: database
  71. Database username: drupal
  72. Database user password: drupal
  73. Database host: 127.0.0.1
  74. Database port: 5432
  75. Is this information correct? (Y/n): y
  76. After site information and database credentials are provided, Drupal will be installed. You will see this in the terminal:
  77. ::
  78. Now installing Drupal.
  79. --2017-09-20 12:29:16-- https://www.drupal.org/files/projects/drupal-7.56.tar.gz
  80. Resolving www.drupal.org (www.drupal.org)... 151.101.5.175
  81. Connecting to www.drupal.org (www.drupal.org)|151.101.5.175|:443... connected.
  82. HTTP request sent, awaiting response... 200 OK
  83. Length: 3277833 (3.1M) [application/x-gzip]
  84. Saving to: ‘drupal-7.56.tar.gz'
  85. drupal-7.56.tar.gz 100%[::::::::::::::::::::::::::::::::::::::::::::::::>] 3.13M 1.82MB/s in 1.75
  86. 2017-09-20 12:29:20 (1.82 MB/S) - ‘drupal-7.56.tar.gz' saved [3277833/3277833]
  87. You are about to create a /var/www/html/sites/default/settings.php file and DROP all tables in your ‘database‘ database. Do you want to continue? (y/n): y
  88. Starting Drupal installation. This takes a while. Consider using the --notify global option.
  89. Installation complete. User name: admin User password: P@55word
  90. Next, the required modules will be downloaded:
  91. ::
  92. Downloading modules.
  93. Project field_group (7.x-1.5) downloaded to /var/www/html/sites/all/modules/field_group.
  94. Project field_group_table (7.x-1.6) downloaded to /var/www/html/sites/all/modules/field_group_table.
  95. Project field_formatter_class (7.x-1.1) downloaded to /var/www/html/sites/all/modules/field_formatter_class.
  96. Project field_formatter_settings (7.x-1.1) downloaded to /var/www/html/sites/all/modules/field_formatter_settings.
  97. Project ctools (7.x-1.12) downloaded to /var/www/html/sites/all/modules/ctools. [success]
  98. Project ctools contains 10 modules: ctools_custom_content, stylizer, ctools_plugin_example, views_content, ctools_ajax_sample, term_depth, ctools_access_ruleset, page_manager, bulk_export, ctools.
  99. Project date (7.x-2.10) downloaded to /var/www/html/sites/all/modules/date.
  100. Project date contains 11 modules: date_context, date_migrate_example, date_migrate, date_popup, date_tool
  101. repeat, date_views, date_all_day, date_api, date_repeat_field, date.
  102. Project devel (7.x-1.5) downloaded to /var/www/html/sites/all/modules/devel.
  103. Project devel contains 3 modules: devel_generate, devel, devel_node_access.
  104. Project ds (7.x-2.14) downloaded to /var/www/html/sites/all/modules/ds.
  105. Project ds contains 7 modules: ds_forms, ds_ui, ds_devel, ds_format, ds_extras, ds_search, ds.
  106. Project link (7.x-1.4) downloaded to /var/www/html/sites/all/modules/link.
  107. Project entity (7.x-1.8) downloaded to /var/www/html/sites/all/modules/entity.
  108. Project entity contains 2 modules: entity_token, entity.
  109. Project libraries (7.x-2.3) downloaded to /var/www/html/sites/all/modules/libraries.
  110. redirect (7.x-1.0-rc3) downloaded to /var/www/html/sites/all/modules/redirect.
  111. Project token (7.x-1.7) downloaded to /var/www/html/sites/all/modules/token.
  112. Project tripal (7.x-3.0-rc1) downloaded to /var/www/html/sites/all/modules/tripal.
  113. Project tripal contains 24 modules: tripal_daemon, tripal, tripal_chado, tripal_ws, tripal_bulk_loader, tripal_chado_views, tripal_ds, tripal_contact, tripal_natural_diversity, tripal_views, tripal_core, tripal_library, tripal_organism, tripal_featuremap, tripal_genetic, tripal_db, tripal_analysis, tripal_phenotype, tripal_pub, tripal_stock, tripal_project, tripal_cv, tripal_phylogeny, tripal_feature.
  114. Project uuid (7.x-1.0) downloaded to /var/www/html/sites/all/modules/uuid.
  115. Project uuid contains 4 modules: uuid_services, uuid_path, uuid_services_example, uuid_path
  116. Project jquery_update (7.x-2.7) downloaded to /var/www/html/sites/all/modules/jquery_update.
  117. Project views (7.x-3.18) downloaded to /var/www/html/sites/all/modules/views. [success]
  118. Project views contains 2 modules: views_ui, views.
  119. Project webform (7.x-4.15) downloaded to /var/www/html/sites/all/modules/webform. [success]
  120. Then those modules will be enabled:
  121. ::
  122. Enabling modules.
  123. The following extensions will be enabled: ctools, date, devel, ds, link, entity, libraries, redirect, tok
  124. en, uuid, jquery_update, views, webform, field_group, field_group_table, field_formatter_class, field_for
  125. matter_settings, views_ui, date_api
  126. Do you really want to continue? (Y/n): y
  127. webform was enabled successfully.
  128. ctools was enabled successfully.
  129. date was enabled successfully.
  130. webform defines the following permissions: access all webform results, access own webform results, edit a
  131. ll webform submissions, delete all webform submissions, access own webform submissions, edit own webform
  132. submissions, delete own webform submissions, edit webform components
  133. ctools defines the following permissions: use ctools import
  134. date_api was enabled successfully.
  135. entity was enabled successfully.
  136. field_formatter_class was enabled successfully.
  137. field_formatter_settings was enabled successfully.
  138. field_group_table was enabled successfully.
  139. jquery_update was enabled successfully.
  140. libraries was enabled successfully.
  141. link was enabled successfully.
  142. token was enabled successfully.
  143. uuid was enabled successfully.
  144. views_ui was enabled successfully.
  145. ds was enabled successfully.
  146. field_group was enabled successfully.
  147. views was enabled successfully.
  148. iredirect was enabled successfully.
  149. uuid defines the following permissions: administer uuid
  150. ds defines the following permissions: admin_display_suite
  151. field_group defines the following permissions: administer fieldgroups
  152. views defines the following permissions: administer views, access all views
  153. jdevel was enabled successfully.
  154. The Date API requires that you set up the site timezone and first day of week settings and the date format settings to function correctly.
  155. redirect defines the following permissions: administer redirects
  156. devel defines the following permissions: access devel information, execute php code, switch users
  157. Patches are then applied:
  158. ::
  159. Applying patches.
  160. --2017-09-20 12:29:48-- https2//drupal.org/files/drupal.pgsql-bytea.27.patch
  161. Resolving drupal.org (drupal.org)... 151.101.129.175, 151.101.1.175, 151.101.193.175,
  162. Connecting to drupal.org (drupal.org)|151.101.129.175|2443... connected.
  163. HTTP request sent, awaiting response... 301 Moved Permanently
  164. Location: https2//www.drupal.org/files/drupal.pgsql-bytea.27.patch [following]
  165. --2017-09-20 12:29:49-- https2//www.drupal.org/files/drupal.pgsql-bytea.27.patch
  166. Resolving www.drupal.org (www.drupal.org)... 151.101.5.175
  167. Connecting to www.drupal.org (www.drupal.org)|151.101.5.175|2443... connected.
  168. HTTP request sent, awaiting response... 200 OK
  169. Length: 1613 (1.6K) [text/plain]
  170. Saving to: ‘drupal.pgsql-bytea.27.patch'
  171. drupal.pgsql-bytea.27.patch 100%[=========================================>] 1.58K --.-KB/s
  172. in 0s
  173. 2017-09-20 12:29:49 (98.4 MB/s) - ‘drupal.pgsql-bytea.27.patch' saved [1613/1613]
  174. and Tripal will be enabled:
  175. ::
  176. Enabling Tripal modules.
  177. The following extensions will be enabled: tripal, tripal_chado, tripal_ds, tripal_ws, php, tripal_chado_views
  178. Do you really want to continue? (Y/n): y
  179. php was enabled successfully.
  180. php defines the following permissions: use PHP for settings
  181. tripal was enabled successfully.
  182. tripal defines the following permissions: administer tripal, access tripal content overview, manage tripal content types, upload files, view dev helps
  183. tripal_chado was enabled successfully.
  184. tripal_chado defines the following permissions: install chado, view chado_ids
  185. tripal_chado_views was enabled successfully.
  186. tripal_chado_views defines the following permissions: manage tripal_views_integration
  187. tripal_ds was enabled successfully.
  188. tripal_ws was enabled successfully.
  189. A PHP code text format has been created.
  190. Clear cache.
  191. ‘all‘ cache was cleared.
  192. Next, you will be prompted to choose the Chado version you would like to install. Unless you need an earlier version for a specific reason, it is best to select the most recent version. In this case, Chado v1.3:
  193. ::
  194. Installing Chado.
  195. Which version of Chado would you like installed?
  196. [0] : Cancel
  197. [1] : Install Chado v1.3
  198. [2] : Install Chado v1.2
  199. [3] : Install Chado v1.11
  200. Job ‘Install Chado v1.3‘ submitted.
  201. 2017-09-21 03:29:24
  202. Tripal Job Launcher
  203. Running as user ‘admin‘
  204. -------------------
  205. 2017-09-21 032292242 There are 1 jobs queued.
  206. 2017-09-21 032292242 Calling2 tripal_chado_install_chado(Install Chado v1.3)
  207. Creating ‘chado‘ schema
  208. Loading sites/all/modules/tripal/tripal_chado/chado_schema/default_schema-1.3.sql...
  209. Install of Chado v1.3 (Step 1 of 2) Successful!
  210. Loading sites/all/modules/tripal/tripal_chado/chado_schema/initialize-1.3.sql...
  211. Install of Chado v1.3 (Step 2 of 2) Successful.
  212. Installation Complete
  213. Next, the site will be prepared and content types created:
  214. ::
  215. Now preparing the site by creating content types.
  216. Job ‘Prepare Chado‘ submitted.
  217. 2017-09-21 03:56:30
  218. Tripal Job Launcher
  219. Running as user ‘shawna‘
  220. -------------------
  221. 2017-09-21 03:56:30: There are 1 jobs queued.
  222. 2017-09-21 03:56:30: Calling: tripal_chado_prepare_chado()
  223. Creating Tripal Materialized Views and Custom Tables...
  224. Loading Ontologies...
  225. Loading ontology: Taxonomic Rank (3)...
  226. Downloading URL http://purl.obolibrary.org/obo/taxrank.obo, saving to /tmp/obo_RxmcoM
  227. Percent complete: 100.00%. Memory: 32,394,440 bytes.
  228. Updating cvtermpath table. This may take a while...
  229. Loading ontology: Tripal Contact (4)...
  230. Loading ontology: Tripal Publication (S)...68 bytes.
  231. Loading ontology: Sequence Ontology (6)...424 bytes.
  232. Downloading URL http://purl.obolibrary.org/obo/so.obo, saving to /tmp/obo_S40JJr
  233. Percent complete: 100.00%. Memory: 33,718,672 bytes.
  234. Updating cvtermpath table. This may take a while...
  235. Making semantic connections for Chado tables/fields...
  236. Map Chado Controlled vocabularies to Tripal Terms...
  237. Examining analysis...
  238. Examining biomaterial...
  239. Examining contact...
  240. Examining control...
  241. Examining cvterm...
  242. Examining feature...
  243. Examining featuremap...
  244. Examining genotype...
  245. Examining library...
  246. Examining organism...
  247. Examining phenotype...
  248. Examining phylotree...
  249. Examining project...
  250. Examining protocol...
  251. Examining protocolparam...
  252. Examining pub...
  253. Examining stock...
  254. Examining stockcollection...
  255. Examining studyfactor...
  256. Examining synonym...
  257. Done.
  258. Creating common Tripal Content Types...
  259. NOTE: Loading of publications is performed using a database transaction.
  260. {If the load fails or is terminated prematurely then the entire set of
  261. Einsertions/updates is rolled back and will not be found in the database
  262. Custom table, ‘tripal_gff_temp‘ , created successfully.
  263. Custom table, ‘tripal_gffcds_temp‘ , created successfully.
  264. Custom table, ‘tripal_gffprotein_temp‘ , created successfully.
  265. Custom table, ‘organism_stock_count‘ , created successfully.
  266. Materialized view ‘organism_stock_count‘ created
  267. Custom table, ‘library_feature_count‘ , created successfully.
  268. Materialized view ‘library_feature_count‘ created
  269. Custom table, ‘organism_feature_count‘ , created successfully.
  270. Materialized view ‘organism_feature_count‘ created
  271. Custom table, ‘analysis_organism‘ , created successfully.
  272. Materialized view ‘analysis_organism‘ created
  273. Custom table, ‘cv_root_mview‘ , created successfully.
  274. Materialized view ‘cv_root_mview‘ created
  275. The final step is to add permissions for the site administrator to view, edit, create, and delete the content types created in the previous step.
  276. ::
  277. Adding permissions for the administrator to View, edit, create, and delete all the newly created content types.
  278. Added "View bio_data_1" to "administrator"
  279. Added "create bio_data_1" to "administrator"
  280. Added "edit bio_data_1" to "administrator"
  281. Added "delete bio_data_1" to "administrator"
  282. Added "View bio_data_2" to "administrator"
  283. Added "create bio_data_2" to "administrator"
  284. Added "edit bio_data_2" to "administrator"
  285. Added "delete bio_data_2" to "administrator"
  286. Added "View bio_data_3" to "administrator"
  287. Added "create bio_data_3" to "administrator"
  288. Added "edit bio_data_3" to "administrator"
  289. Added "delete bio_data_3" to "administrator"
  290. Added "View bio_data_4" to "administrator"
  291. Added "create bio_data_4" to "administrator"
  292. Added "edit bio_data_4" to "administrator"
  293. Added "delete bio_data_4" to "administrator"
  294. Added "View bio_data_5" to "administrator"
  295. Added "create bio_data_5" to "administrator"
  296. Added "edit bio_data_5" to "administrator"
  297. Added "delete bio_data_5" to "administrator"
  298. Added "View bio_data_6" to "administrator"
  299. Added "create bio_data_6" to "administrator"
  300. Added "edit bio_data_6" to "administrator"
  301. Added "delete bio_data_6" to "administrator"
  302. Added "View bio_data_7" to "administrator"
  303. Added "create bio_data_7" to "administrator"
  304. Added "edit bio_data_7" to "administrator"
  305. Added "delete bio_data_7" to "administrator"
  306. "all" cache was cleared.
  307. Installation is now complete. You may navigate to your new site. For more information on using Tripal please see the installation guide on tripal.info.
  308. The installation is now finished! Navigate to your new site by entering it's URL in a browser. For this example the URL is: http://localhost/.