rapid_install.rst 17 KB

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