Project

General

Profile

Install the Web Interface » History » Version 6

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