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