Project

General

Profile

Install the Web Interface » History » Version 12

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