Install the Web Interface » History » Version 5
Eric Hou, 05/10/2010 04:49 PM
1 | 1 | Amber Herold | h1. Install the Web Interface |
---|---|---|---|
2 | |||
3 | 4 | Eric Hou | Install Leginon and Appion web tools for viewing images and image processing through the web server. |
4 | 1 | Amber Herold | If you are installing your web server on a different machine than your processing server, |
5 | you need to download the myami code. |
||
6 | *TODO:* add a link to the myami code |
||
7 | |||
8 | 1. Move the myami/myamiweb directory to your Apache web directory |
||
9 | |||
10 | Example: |
||
11 | <pre> |
||
12 | > cd [webdirectory] // /var/www/html in this example |
||
13 | > cp [path_to_myami_download_location]/myami/myamiweb . |
||
14 | </pre> |
||
15 | |||
16 | 5 | Eric Hou | 2. Automatically setup: |
17 | Run online setup wizard by visiting http://yourhost/myamiweb/setup to create the myami website’s config file. |
||
18 | The setup wizard will also check your database connection, database tables’ creation and default data initialization. |
||
19 | If this is your first time creating the web tool configure file. We recommend you to use the setup wizard. |
||
20 | |||
21 | 3. Manually setup (Advance User): |
||
22 | Copy config.php.template to config.php and edit the latter by adding these parameters: |
||
23 | 1 | Amber Herold | "config.php" should be located in /var/www/html/myamiweb/ on CentOS and /srv/www/htdocs/myamiweb/ on SuSE. |
24 | |||
25 | 5 | Eric Hou | * define site base path |
26 | * This should be changed if the myamiweb directory is located |
||
27 | * in a sub-directory of the Apache web directory. |
||
28 | * ex. myamiweb is in /var/www/html/applications/myamiweb/ then |
||
29 | * change to define('BASE_PATH',"applications/myamiweb"); |
||
30 | 1 | Amber Herold | |
31 | 5 | Eric Hou | <pre> |
32 | 1 | Amber Herold | define('BASE_PATH',"myamiweb"); |
33 | 5 | Eric Hou | </pre> |
34 | 1 | Amber Herold | |
35 | 5 | Eric Hou | * myamiweb login system |
36 | 1 | Amber Herold | |
37 | 5 | Eric Hou | <pre> |
38 | // Browse to the administration tools in myamiweb prior to |
||
39 | // changing this to true to populate DB tables correctly. |
||
40 | define('ENABLE_LOGIN', false); |
||
41 | 1 | Amber Herold | </pre> |
42 | |||
43 | 5 | Eric Hou | |
44 | * Administrator email title and email address |
||
45 | |||
46 | <pre> |
||
47 | define('EMAIL_TITLE', 'The name of your institute'); |
||
48 | define('ADMIN_EMAIL', "example@institute.edu"); |
||
49 | </pre> |
||
50 | |||
51 | * SMTP Server setup (not required but recommended): |
||
52 | |||
53 | <pre> |
||
54 | define('ENABLE_SMTP', false); |
||
55 | define('SMTP_HOST', 'mail.institute.edu'); //your smtp host |
||
56 | </pre> |
||
57 | |||
58 | * When SMTP server requires authentication |
||
59 | |||
60 | <pre> |
||
61 | // --- Check this with your email administrator -- // |
||
62 | // --- Set it to true if your SMTP server requires authentication -- // |
||
63 | define('SMTP_AUTH', false); |
||
64 | |||
65 | // --- If SMTP_AUTH is not required(SMTP_AUTH set to false, -- // |
||
66 | // --- no need to fill in 'SMTP_USERNAME' & SMTP_PASSWORD -- // |
||
67 | define('SMTP_USERNAME', ""); |
||
68 | define('SMTP_PASSWORD', ""); |
||
69 | </pre> |
||
70 | |||
71 | * Setup your MySQL database server parameters: |
||
72 | |||
73 | <pre> |
||
74 | define('DB_HOST', ""); // DB Host name |
||
75 | define('DB_USER', ""); // DB User name |
||
76 | define('DB_PASS', ""); // DB Password |
||
77 | define('DB_LEGINON', ""); // Leginon database name |
||
78 | define('DB_PROJECT', ""); // Project database name |
||
79 | </pre> |
||
80 | |||
81 | 1 | Amber Herold | * Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php` |
82 | |||
83 | <pre> |
||
84 | addplugin("processing"); |
||
85 | </pre> |
||
86 | |||
87 | 5 | Eric Hou | * Add processing host information |
88 | 1 | Amber Herold | |
89 | <pre> |
||
90 | 5 | Eric Hou | // --- Please enter your processing host information associate with -- // |
91 | // --- Maximum number of the processing nodes -- // |
||
92 | // --- $PROCESSING_HOSTS[] = array('host' => 'host1.school.edu', 'nproc' => 4); -- // |
||
93 | // --- $PROCESSING_HOSTS[] = array('host' => 'host2.school.edu', 'nproc' => 8); -- // |
||
94 | |||
95 | // $PROCESSING_HOSTS[] = array('host' => '', 'nproc' => ); |
||
96 | 1 | Amber Herold | </pre> |
97 | |||
98 | 5 | Eric Hou | * Microscope spherical aberration constant |
99 | 1 | Amber Herold | |
100 | 5 | Eric Hou | <pre> |
101 | $DEFAULTCS = "2.0"; |
||
102 | </pre> |
||
103 | |||
104 | * IMAGIC and Other features: |
||
105 | |||
106 | <pre> |
||
107 | // Check if IMAGIC is installed and running, otherwise hide all functions |
||
108 | define('HIDE_IMAGIC', false); |
||
109 | |||
110 | // hide processing tools still under development. |
||
111 | define('HIDE_FEATURE', true); |
||
112 | </pre> |
||
113 | |||
114 | We will not include the cluster registration now. It is covered in the last part of this document. |
||
115 | |||
116 | 4. Test the set-up by visiting http://yourhost/myamiweb |
||
117 | 1 | Amber Herold | |
118 | ______ |
||
119 | |||
120 | [[Install the MRC PHP Extension|< Install the MRC PHP Extension]] | [[Potential Problems|Potential Problems >]] |
||
121 | |||
122 | ______ |