Project

General

Profile

Install the Web Interface » History » Version 16

Neil Voss, 05/12/2010 04:11 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 16 Neil Voss
sudo chmod 777 /var/www/html/myamiweb  #this is temporary for setup, revert to 555 when finished with this page
14 1 Amber Herold
</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 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. 
24 6 Amber Herold
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 8 Amber Herold
*Note:* You may skip this section if you configured your installation with the setup wizard.
29 7 Amber Herold
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 10 Anchi Cheng
90
For Appion Installation, also setup these in config.php:
91 1 Amber Herold
* Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php`
92
93
<pre>
94
addplugin("processing");
95
</pre>
96
97 5 Eric Hou
* Add processing host information
98 1 Amber Herold
99
<pre>
100 5 Eric Hou
// --- Please enter your processing host information associate with -- //
101
// --- Maximum number of the processing nodes									-- //
102
// --- $PROCESSING_HOSTS[] = array('host' => 'host1.school.edu', 'nproc' => 4); -- //
103
// --- $PROCESSING_HOSTS[] = array('host' => 'host2.school.edu', 'nproc' => 8); -- //
104
105
// $PROCESSING_HOSTS[] = array('host' => '', 'nproc' => );
106 1 Amber Herold
</pre>
107
108 5 Eric Hou
* Microscope spherical aberration constant
109 1 Amber Herold
110 5 Eric Hou
<pre>
111
$DEFAULTCS = "2.0";
112
</pre>
113
114
* IMAGIC and Other features:
115
 
116
<pre>
117
// Check if IMAGIC is installed and running, otherwise hide all functions
118 1 Amber Herold
define('HIDE_IMAGIC', false);
119 5 Eric Hou
120
// hide processing tools still under development.
121
define('HIDE_FEATURE', true);
122
</pre>
123
124
We will not include the cluster registration now. It is covered in the last part of this document.
125
126 9 Amber Herold
h2. 3. Test the installation
127
128
Visit http://yourhost/myamiweb to confirm functionality.
129 1 Amber Herold
130
______
131
132
[[Install the MRC PHP Extension|< Install the MRC PHP Extension]] | [[Potential Problems|Potential Problems >]]
133
134
______