Changeset 3113
- Timestamp:
- Feb 7, 2007, 2:13:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/installation.html
r3056 r3113 4 4 $Id$ 5 5 6 Copyright (C) 2005-200 6Jari Häkkinen, Nicklas Nordborg, Gregory Vincic6 Copyright (C) 2005-2007 Jari Häkkinen, Nicklas Nordborg, Gregory Vincic 7 7 8 8 This file is part of BASE - BioArray Software Environment. … … 60 60 <b>Created by:</b> Nicklas, Jari<br> 61 61 <b>Last updated:</b> $Date$<br> 62 <b>Copyright ©</b> 2005-200 6The respective authors. All rights reserved.62 <b>Copyright ©</b> 2005-2007 The respective authors. All rights reserved. 63 63 </p> 64 64 … … 90 90 <p> 91 91 b) PostgreSQL<br> 92 PostgreSQL 8.0 seems to be working very well. Actually sometimes even better93 than with MySQL. If you want to usePostgres instead of MySQL you will have to edit94 your <code>base.config</code> file. Uncomment the settings for Postgres and comment95 out the settings for MySQL.92 PostgreSQL 8.0 seems to be working very well. If you want to use 93 Postgres instead of MySQL you will have to edit 94 your <code>base.config</code> file. Uncomment the settings for 95 Postgres and comment out the settings for MySQL. 96 96 </li> 97 97 … … 120 120 <p> 121 121 If you choose to download the binary package, skip to the next 122 item. The rest of us, read on and compile BASE 2. If you 123 downloadeda source distribution, unpack the downloaded file <tt>tar zxpf124 base-...src.tar.gz</tt>, or you may have performed a subversion checkout.125 Change to the 'root' base2 directory, and issue <tt>ant126 package.bin</tt>. This will create a binary package in the base2 root127 directory. Unpack this new package (outside of the source file128 hierarchy), and from now on the instructions are the same however129 you got the binary.122 item. The rest of us, read on and compile BASE 2. If you downloaded 123 a source distribution, unpack the downloaded file <tt>tar zxpf 124 base-...src.tar.gz</tt>, or you may have performed a subversion 125 checkout. Change to the 'root' base2 directory, and issue <tt>ant 126 package.bin</tt>. This will create a binary package in the base2 127 'root' directory. Unpack this new package (outside of the source 128 file hierarchy), and from now on the instructions are the same 129 irrespective where you got the binary package. 130 130 </p> 131 131 … … 137 137 accomplish this is available in the 138 138 <a href=development/index.html#running>developer documentation 139 pages</a>. The rest of the instructions here apply also for this 140 use case.</i> 139 pages</a>. When you return back after compiling in the subversion 140 tree you can follow the instruction here (with obvious changes to 141 paths).</i> 141 142 </p> 142 143 </li> … … 172 173 173 174 <p> 174 The <code> base-2.0/misc/sql/createdb.mysql.sql</code> file175 The <code>/path_to_base/misc/sql/createdb.mysql.sql</code> file 175 176 contains the above statements and can be used by the <code>mysql</code> 176 177 command-line tool (remember to edit the <tt>user</tt>, … … 201 202 </p> 202 203 <p> 203 The <code> base-2.0/misc/sql/createdb.postgresql.sql</code> file204 The <code>/path_to_base/misc/sql/createdb.postgresql.sql</code> file 204 205 contains the above statements and can be used by the <code>psql</code> 205 206 command-line tool: … … 227 228 <li> 228 229 Configure BASE, in 229 <code> base-2.0/www/WEB-INF/classes/base.config</code> do:230 <code>/path_to_base/www/WEB-INF/classes/base.config</code> do: 230 231 <ol type=a> 231 232 <li> … … 246 247 <li> 247 248 Modify extended properties as needed through 248 file <code> base-2.0/www/WEB-INF/classes/extended-properties.xml</code>. This249 file <code>/path_to_base/www/WEB-INF/classes/extended-properties.xml</code>. This 249 250 is not strictly needed but may be preferred. There is a 250 251 administrator <a href=admin/extended-properties.html>document … … 258 259 <i>BASE</i> (database initialization)<br> 259 260 Change directory to 260 <code> base-2.0/bin</code> and run <code>initdb.sh</code> as261 <code>/path_to_base/bin</code> and run <code>initdb.sh</code> as 261 262 <pre> 262 263 ./initdb.sh password … … 277 278 available from <a 278 279 href=http://jakarta.apache.org/tomcat/>http://jakarta.apache.org/tomcat/</a>. 279 We are now recommending everyone to run a late 5.5 release since 280 the trick described in <a 281 href=http://lev.thep.lu.se/trac/base/browser/trunk/doc/tomcat_with_java_1.5.txt>doc/tomcat_with_java_1.5.txt</a> is not needed anymore. 282 [<i>We have previously tested BASE with tomcat releases 5.0.30 and 283 5.5.7. However, these versions use a built in Java 1.4 compiler, 284 to make it work with Java 1.5 read and follow the instructions in 285 <a 286 href=http://lev.thep.lu.se/trac/base/browser/trunk/doc/tomcat_with_java_1.5.txt>doc/tomcat_with_java_1.5.txt</a> 287 and, consequently, download Apache ANT from <a 288 href=http://ant.apache.org/>http://ant.apache.org/</a>.</i>] 289 </p> 290 </li> 291 292 293 </p> 294 295 <p> 296 You MUST also make sure that Tomcat uses the SERVER mode of the Java 280 </p> 281 <p> 282 You MUST make sure that Tomcat uses the SERVER mode of the Java 297 283 run time engine (see <a href="http://lev.thep.lu.se/trac/base/ticket/99">ticket #99</a>). 298 284 On Linux you do this by setting the environment variable: … … 312 298 href="http://www.chemaxon.com/jchem/doc/admin/tomcat.html">http://www.chemaxon.com/jchem/doc/admin/tomcat.html</a>. 313 299 </p> 314 300 </li> 315 301 <li> 316 302 <p> 317 303 <i>BASE/tomcat</i> <br> 318 304 Either move the 319 <code> base-2.0/www</code> directory to the tomcat webapps305 <code>/path_to_base/www</code> directory to the tomcat webapps 320 306 directory or create a symbolic link from the tomcat webapps 321 directory to the <code>www</code> directory (<code>ln -s /path /to/base2/www322 base2</code>). Start/restart tomcat, and try http://hostname /base2307 directory to the <code>www</code> directory (<code>ln -s /path_to_base/www 308 base2</code>). Start/restart tomcat, and try http://hostname:8080/base2 323 309 (replace base2 with whatever you use in your tomcat webapps 324 310 directory) in your favourite browser, you should expect to see the 325 311 BASE login page after a few seconds. 326 312 </p> 327 328 <p>329 In some cases when redoing the installation, the behaviour of330 tomcat/apache/base may seem strange. This may be due to tomcat's331 caching of the applications installed. The easiest way to test332 whether the caching creates problems is to simply delete the cached333 files. On SuSE 9.3 this is done by (with tomcat5)334 </p>335 336 <pre class="code">337 rm -rf /etc/tomcat5/base/Catalina/localhost338 rm -rf ~tomcat/work/Catalina339 </pre>340 341 313 </li> 342 314 … … 344 316 <p> 345 317 <i>BASE, apache and apache/tomcat connector</i> 346 <br> This step is optional. If you want run the tomcat server 318 <br> <strong>This step is optional</strong>. If you want run the 319 tomcat server 347 320 through the apache web server, you need to install the apache 348 321 version 2 web server, available from <a … … 351 324 href="http://jakarta.apache.org/tomcat/connectors-doc/index.html">http://jakarta.apache.org/tomcat/connectors-doc/index.html</a>. 352 325 So, we got you there;-) To be honest, this item is not really well 353 documented yetsince we use SuSE 9.3 on our demo/test server, and326 documented since we use SuSE 9.3 on our demo/test server, and 354 327 apache/tomcat/mod_jk comes pre-installed. What you need to do is: 355 328 <ol type=a> … … 404 377 405 378 <p> 406 <i> Upgrading BASE to versions below 2.2 may not be safe on a PostgreSQL database due to a bug in 407 Hibernate. The problem is reported to Hibernate developers. There now exists 408 a workaround for this problem. Read more about it on the 409 <a href="http://base.thep.lu.se/wiki/UpgradePostgres">Upgrading a Postgres database</i> 410 page. Note! This bug has been fixed in the Hibernate version which is shipped with 411 BASE 2.2 and above. 379 <i> Note to PostgreSQL users: Upgrading BASE to versions earlier than 380 v2.2 is not be safe with an PostgreSQL database engine due to a bug in 381 Hibernate. The problem is reported to Hibernate developers. There now 382 exists a workaround for this problem. Read more about it on the 383 <a href="http://base.thep.lu.se/wiki/UpgradePostgres">Upgrading a 384 Postgres database</a> page. Note! The Hibernate bug has been fixed in 385 the Hibernate package shipped with BASE 2.2 and above. </i> 412 386 </p> 413 387 … … 423 397 <li> 424 398 <p> 425 Rename your current BASE 2 installation <tt>mv base-2.0 base-2.0_old</tt> 399 Rename your current BASE 2 installation <tt>mv /path_to_base 400 /path_to_base_old</tt> 426 401 </p> 427 402 </li> … … 434 409 BASE 2</a> and unpack the downloaded file, i.e. <tt>tar zxpf 435 410 base-...tar.gz</tt>. If you prefer to have the bleeding edge 436 version of BASE 2 .0, perform a checkout of the source from the411 version of BASE 2, perform a checkout of the source from the 437 412 subversion repository (subversion checkout instructions at <a 438 href=http:// lev.thep.lu.se/trac/base/wiki>BASE 2.0trac site</a>).413 href=http://base.thep.lu.se>BASE 2 trac site</a>). 439 414 </p> 440 415 441 416 <p> 442 417 If you choose to download the binary package, skip to the next 443 item. The rest of us, read on and compile BASE 2. If you 444 downloadeda source distribution, unpack the downloaded file <tt>tar zxpf445 base-...src.tar.gz</tt>, or you may have performed a subversion checkout.446 Change to the 'root' base2 directory, and issue <tt>ant447 package.bin</tt>. This will create a binary package in the base2 root448 directory. Unpack this new package (outside of the source file449 hierarchy), and from now on the instructions are the same however450 you got the binary.451 </p> 452 </li> 453 454 <li> 455 <p> 456 You need to transfer settings made from the old installation 457 to thenew. This is most easily done by comparing the configuration file458 (<tt> base-2.0/www/WEB-INF/classes/base.config</tt>) between the459 460 userfiles ).418 item. The rest of us, read on and compile BASE 2. If you downloaded 419 a source distribution, unpack the downloaded file <tt>tar zxpf 420 base-...src.tar.gz</tt>, or you may have performed a subversion 421 checkout. Change to the 'root' BASE 2 directory, and issue <tt>ant 422 package.bin</tt>. This will create a binary package in the BASE 2 423 'root' directory. Unpack this new package (outside of the source 424 file hierarchy), and from now on the instructions are the same 425 irrespective where you got the binary package. 426 </p> 427 </li> 428 429 <li> 430 <p> 431 You need to transfer settings made from the old installation to the 432 new. This is most easily done by comparing the configuration file 433 (<tt>/path_to_base/www/WEB-INF/classes/base.config</tt>) between the 434 new and the old install (usually fields db.username, db.password, 435 userfiles need to be transferred). 461 436 </p> 462 437 <p> … … 469 444 <li> 470 445 <p> 471 <i> Note, this is not safe on a PostgreSQL database due to a bug in 472 Hibernate. The problem is reported to Hibernate developers.</i> <br> 473 It is recommended that you perform an update of your database. 474 Running the update scripts are not always necessary, but the update 475 is safe to perform even in cases when it is not needed. Change 476 directory to <tt>/path/to/base-2.0/bin/</tt> and issue: <br> 446 It is recommended that you also perform an update of your 447 database. Running the update scripts are not always necessary when 448 upgrading BASE 2, but the update is safe to perform even in cases 449 when it is not needed. Change directory 450 to <tt>/path_to_base/bin/</tt> and issue: <br> 477 451 <tt>sh ./updatedb.sh <font color=#00ccc0><i>password</i></font> ; 478 452 sh ./updateindexes.sh <font … … 485 459 <li> 486 460 <p> 487 As tomcat user, remove cached files and directories. Something like this 461 As tomcat user, remove cached files and directories. Do something 462 like this 488 463 <pre> 489 464 cd /usr/share/apache-tomcat-5.5.15/ … … 507 482 </ol> 508 483 509 <h2><a name=migration>BASE 1.2 to 2. 0data migration instructions</a></h2>484 <h2><a name=migration>BASE 1.2 to 2.2 data migration instructions</a></h2> 510 485 511 486 <p> … … 515 490 supplied as is and usage is done at your risk. We are committed to 516 491 solve migration problems at the level of transferring data from BASE 517 1.2 to 2. 0.x, but cannot resolve data loss issues due to imperfect518 migration in a running BASE 2.0.x server. When you start the migration 519 toolyou are required to pass parameter "disclaimer_understood" to the492 1.2 to 2.2.x, but cannot resolve data loss issues in a running BASE 2 493 server due to imperfect migration. When you start the migration tool 494 you are required to pass parameter "disclaimer_understood" to the 520 495 migrate_from_1.2.sh script. Remember to check that the migration 521 496 performed well before you decide to delete your 1.2 installation. … … 523 498 524 499 <p> 525 Verify that your BASE 2 .0installation is up and running before500 Verify that your BASE 2 installation is up and running before 526 501 attempting migration. Preferably try to login using the root user 527 502 through the web interface. … … 560 535 <p> 561 536 Change settings in the file 562 <code> base-2.0/dist/www/WEB-INF/classes/migrate.properties</code>.537 <code>/path_to_base/dist/www/WEB-INF/classes/migrate.properties</code>. 563 538 The available options are commented: 564 539 <ol type=a> … … 575 550 Set the <code>pluginDir</code> to point to the directory 576 551 where your BASE 1 plug-ins are installed. The default is 577 <code>/usr/loca /base/plugins</code>.552 <code>/usr/local/base/plugins</code>. 578 553 </li> 579 554 <li> … … 595 570 Run migration utility: 596 571 <pre class="code"> 597 cd base-2.0/dist/bin572 cd /path_to_base/dist/bin 598 573 ./migrate_from_1.2.sh 599 574 </pre>
Note: See TracChangeset
for help on using the changeset viewer.