Project

General

Profile

Install the Web Interface » History » Version 7

Amber Herold, 05/11/2010 09:36 AM

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