Project

General

Profile

Install the Web Interface Advanced » History » Version 9

Amber Herold, 06/04/2012 12:51 PM

1 1 Neil Voss
h1. Install the Web Interface Advanced
2
3
h3. Manual configuration instructions (Advanced User)
4
5 3 Amber Herold
*Note:* You may skip this section if you configured your installation with the setup wizard at http://localhost/myamiweb/setup.
6 1 Neil Voss
7
Copy config.php.template to config.php and edit the latter by adding these parameters:
8
"config.php" should be located in /var/www/html/myamiweb/ on CentOS and /srv/www/htdocs/myamiweb/ on SuSE.
9
10 5 Amber Herold
# define site base path
11
This should be changed if the myamiweb directory is located
12
in a sub-directory of the Apache web directory.
13
ex. myamiweb is in /var/www/html/applications/myamiweb/ then
14
change to  define('BASE_PATH',"applications/myamiweb");
15
 
16 1 Neil Voss
<pre>
17
define('BASE_PATH',"myamiweb"); 
18
</pre>
19 5 Amber Herold
&nbsp;
20
# myamiweb login system
21 1 Neil Voss
<pre>
22
// Browse to the administration tools in myamiweb prior to 
23
// changing this to true to populate DB tables correctly.
24
define('ENABLE_LOGIN', false);	
25
</pre>
26 5 Amber Herold
&nbsp;
27
# Administrator email title and email address
28 1 Neil Voss
<pre>
29
define('EMAIL_TITLE', 'The name of your institute');
30
define('ADMIN_EMAIL', "example@institute.edu");
31
</pre>
32 5 Amber Herold
&nbsp;
33
# SMTP Server setup (not required but recommended):
34 1 Neil Voss
<pre>
35
define('ENABLE_SMTP', false);
36
define('SMTP_HOST', 'mail.institute.edu');	//your smtp host
37
</pre>
38 5 Amber Herold
&nbsp;
39 6 Amber Herold
## When SMTP server requires authentication
40 1 Neil Voss
<pre>
41
// --- Check this with your email administrator -- //
42
// --- Set it to true if your SMTP server requires authentication -- //
43
define('SMTP_AUTH', false);
44
45
// --- If SMTP_AUTH is not required(SMTP_AUTH set to false, -- //
46
// --- no need to fill in 'SMTP_USERNAME' & SMTP_PASSWORD -- //
47
define('SMTP_USERNAME', "");
48
define('SMTP_PASSWORD', "");
49
</pre>
50 5 Amber Herold
&nbsp;
51
# Setup your MySQL database server parameters:
52 1 Neil Voss
<pre>
53
define('DB_HOST', "");		// DB Host name
54
define('DB_USER', "");		// DB User name
55
define('DB_PASS', "");		// DB Password
56
define('DB_LEGINON', "");	// Leginon database name
57
define('DB_PROJECT', "");	// Project database name
58
</pre>
59 5 Amber Herold
&nbsp;
60
# Enable Image Cache
61 1 Neil Voss
If you want to use caching function for faster image loading time in image viewer, change 'ENABLE_CACHE' to true.
62
You can change the 'CACHE_PATH' to other location, but make sure the apache user has write access to this folder.
63 2 Eric Hou
<pre>
64
// --- Enable Image Cache --- //
65
define('ENABLE_CACHE', true);
66 1 Neil Voss
// --- caching location --- //
67 2 Eric Hou
// --- please make sure the apache user has write access to this folder --- //
68
define('CACHE_PATH', '/srv/www/cache/');
69
define('CACHE_SCRIPT', WEB_ROOT.'/makejpg.php');
70
</pre>
71 1 Neil Voss
72 5 Amber Herold
h3. Additional parameters needed for Appion Installations only:
73 1 Neil Voss
74 9 Amber Herold
[[appion config advanced]]
75
76 5 Amber Herold
# Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php`
77 4 Amber Herold
<pre>
78
addplugin("processing");
79
</pre>
80 5 Amber Herold
&nbsp;
81
# IMAGIC and Other features:
82 4 Amber Herold
<pre>
83
// Check if IMAGIC is installed and running, otherwise hide all functions
84
define('HIDE_IMAGIC', false);
85
86
// hide processing tools still under development.
87
define('HIDE_FEATURE', true);
88 1 Neil Voss
</pre>
89 5 Amber Herold
&nbsp;
90
# Add processing host information
91
&nbsp;
92
*Appion version 2.2 and later:*
93 7 Amber Herold
The following code should be added and modified for each processing host available. 
94
<pre>
95
$PROCESSING_HOSTS[] = array(
96
'host' => 'myhost.inst.edu',	
97
'nproc' => 32,  // number of processors available on the host, not used
98
'nodesdef' => '4', // default number of nodes used by a refinement job
99
'nodesmax' => '280', // maximum number of nodes a user may request for a refinement job
100
'ppndef' => '32', // default number of processors per node used for a refinement job
101
'ppnmax' => '32', // maximum number of processors per node a user may request for a refinement job
102
'reconpn' => '16', // recons per node, not used 
103
'walltimedef' => '48', // default wall time in hours that a job is allowed to run
104
'walltimemax' => '240', // maximum hours in wall time a user may request for a job
105
'cputimedef' => '1536', // default cpu time in hours a job is allowed to run (wall time x number of cpu's) 
106
'cputimemax' => '10000', // maximum cpu time in hours a user may request for a job
107
'memorymax' => '', // the maximum memory a job may use
108
'appionbin' => 'bin/', // the path to the myami/appion/bin directory on this host
109
'appionlibdir' => 'appion/', // the path to the myami/appion/appionlib directory on this host
110
'baseoutdir' => 'appion', // the directory that processing output should be stored in
111
'localhelperhost' => '', // a machine that has access to both the web server and the processing host file systems to copy data between the systems
112
'dirsep' => '/', // the directory separator used by this host
113
'wrapperpath' => '', // advanced option that enables more than one Appion installation on a single machine, contact us for info 
114
'loginmethod' => 'SHAREDKEY', // Appion currently supports 'SHAREDKEY' or 'USERPASSWORD' 
115
'loginusername' => '', // if this is not set, Appion uses the username provided by the user in the Appion Processing GUI
116
'passphrase' => '', // if this is not set, Appion uses the password provided by the user in the Appion Processing GUI
117
'publickey' => 'rsa.pub', // set this if using 'SHAREDKEY'
118
'privatekey' => 'rsa'	  // set this if using 'SHAREDKEY'
119
);
120 8 Amber Herold
</pre>
121 5 Amber Herold
&nbsp;
122
*Appion version 2.1 and prior:*
123 1 Neil Voss
<pre>
124
// --- Please enter your processing host information associate with -- //
125
// --- Maximum number of the processing nodes									-- //
126
// --- $PROCESSING_HOSTS[] = array('host' => 'host1.school.edu', 'nproc' => 4); -- //
127
// --- $PROCESSING_HOSTS[] = array('host' => 'host2.school.edu', 'nproc' => 8); -- //
128
129
// $PROCESSING_HOSTS[] = array('host' => '', 'nproc' => );
130
</pre>
131 5 Amber Herold
&nbsp;
132
# Microscope spherical aberration constant
133
&nbsp;
134 4 Amber Herold
Not needed for Appion version 2.2 and later. Version 2.1 and earlier only:
135 1 Neil Voss
<pre>
136
$DEFAULTCS = "2.0";
137
</pre>
138
139
140
We will not include the cluster registration now. It is covered in the last part of this document.
141
142
______
143
144
[[Install the Web Interface| Go back to Install the Web Interface]]
145
146
147
______