How to Update from v22 (Linux) » History » Version 2
Anchi Cheng, 12/13/2013 05:41 PM
1 | 1 | Anchi Cheng | h1. Upgrade to Leginon System version 30 from version 22 |
---|---|---|---|
2 | |||
3 | Leginon/Appion 3.0 release web image viewer will not be compatible with CentOS 5 due to prerequisites of REDUX, the new image server that is compatible with php 5.3 used in modern os. The Leginon processing server code is still compatible with python 2.4 which came with CentOS 5 but the development from now on will assume python version 2.6 along with other default yum installed packages of CentOS 6. |
||
4 | |||
5 | h1. How to Update from v2.2 (Linux) |
||
6 | |||
7 | h2. Upgrade OS of the web server to CentOS 6 if you are upgrading from the non-redux version of myami 2.2 |
||
8 | |||
9 | Other OS with php 5.3 and above should also work but we can't provide instruction for all individual cases. |
||
10 | # Preliminary document for Ubuntu [[Myami_on_Ubuntu]] |
||
11 | |||
12 | h2. Download myami 3.0 source code |
||
13 | |||
14 | <pre> |
||
15 | svn co http://emg.nysbc.org/svn/myami/branches/myami-3.0/ |
||
16 | </pre> |
||
17 | |||
18 | h2. Install Appion/Leginon Packages |
||
19 | |||
20 | h3. Install all the myami python packages _except appion_ using the following script: |
||
21 | |||
22 | <pre> |
||
23 | cd /your_download_area |
||
24 | cd myami |
||
25 | sudo ./pysetup.sh install |
||
26 | </pre> |
||
27 | |||
28 | * If your web server is separated from the processing server, you should install all python packages on the processing server and configure than but only need redux and pyami on the webserver. |
||
29 | |||
30 | That will install each package, and report any failures. To determine the cause of failure, see the generated log file "pysetup.log". If necessary, you can enter a specific package directory and run the python setup command manually. For example, if sinedon failed to install, you can try again like this: |
||
31 | |||
32 | <pre> |
||
33 | cd sinedon |
||
34 | sudo python setup.py install |
||
35 | </pre> |
||
36 | |||
37 | h3. Install Redux image server |
||
38 | |||
39 | Follow [[Install_Redux_image_server|this instruction]] to install and configure redux. |
||
40 | |||
41 | h3. Move leginon.cfg/instruments.cfg/sinedon.cfg if it was saved with the old installation. |
||
42 | |||
43 | Run this script to find out where it was: |
||
44 | <pre> |
||
45 | cd /your_download_area/myami/leginion/ |
||
46 | ./configcheck.py |
||
47 | </pre> |
||
48 | If the script can not find leginon.cfg, and you found a copy of leginon.cfg in $PYTHONSITEPKG/leginon/config from the last installation, move that leginon.cfg to $PYTHONSITEPKG/leginon. |
||
49 | |||
50 | h2. Rename your current myamiweb at the document root of the web server to something else as a backup. |
||
51 | |||
52 | h2. Install updated Web viewers and tools |
||
53 | |||
54 | *You will not need to upgrade php mrc tools*. |
||
55 | |||
56 | See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server. |
||
57 | |||
58 | h2. Copy config.php from your older myamiweb backup to the new myamiweb folder. |
||
59 | |||
60 | {{include(Appion:Run Database Update Script)}} |
||
61 | |||
62 | |||
63 | |||
64 | ______ |
||
65 | |||
66 | 2 | Anchi Cheng | [[How_to_Update_from_v22_(Instrument_Windows_Computer)| How to Update from v2.2 (Instrument Computer) >]] |
67 | 1 | Anchi Cheng | |
68 | |||
69 | ______ |