Project

General

Profile

Example config file » History » Version 1

Amber Herold, 08/02/2011 11:17 AM

1 1 Amber Herold
h1. Example config file
2
3
<pre>
4
<?php
5
6
/**
7
* The Leginon software is Copyright 2010
8
* The Scripps Research Institute, La Jolla, CA
9
* For terms of the license agreement
10
* see http://emg.nysbc.org/software/leginon-license
11
*
12
*/
13
14
/**
15
* Please visit http://yourhost/myamiwebfolder/setup
16
* for automatically setup this config file for the
17
* first time.
18
*/
19
20
21
require_once 'inc/config.inc';
22
define('WEB_ROOT',dirname(__FILE__));
23
24
// --- define myamiweb tools base --- //
25
define('PROJECT_NAME',"myamiweb");
26
define('PROJECT_TITLE',"Ambers Trunk Appion and Leginon Tools");
27
28
// --- define site base path -- //
29
// --- This should be changed if the myamiweb directory is located -- //
30
// --- in a sub-directory of the Apache web directory. -- //
31
// --- ex. myamiweb is in /var/www/html/applications/myamiweb/ then -- //
32
// --- change "myamiweb to "applications/myamiweb" -- //
33
define('BASE_PATH',"~amber/myamiweb");
34
35
define('BASE_URL',"/~amber/myamiweb/");
36
define('PROJECT_URL',"/~amber/myamiweb/project/");
37
38
// --- myamiweb login --- //
39
// Browse to the administration tools in myamiweb prior to
40
// changing this to true to populate DB tables correctly.
41
define('ENABLE_LOGIN', true);
42
43
// --- Administrator email title and email address -- //
44
define('EMAIL_TITLE',"asdfasf");
45
define('ADMIN_EMAIL',"amber@scripps.edu");
46
47
// --- When 'ENABLE_SMTP set to true, email will send out -- //
48
// --- via ADMIN_EMIL's SMTP server. --//
49
define('ENABLE_SMTP', false);
50
define('SMTP_HOST',"");
51
52
// --- Check this with your email administrator -- //
53
// --- Set it to true if your SMTP server requires authentication -- //
54
define('SMTP_AUTH', false);
55
56
// --- If SMTP_AUTH is not required(SMTP_AUTH set to false, -- //
57
// --- no need to fill in 'SMTP_USERNAME' & SMTP_PASSWORD -- //
58
define('SMTP_USERNAME',"");
59
define('SMTP_PASSWORD',"");
60
61
// --- Set your MySQL database server parameters -- //
62
define('DB_HOST',"cronus4.scripps.edu");
63
define('DB_USER',ask someone);
64
define('DB_PASS',ask someone);
65
define('DB_LEGINON',"dbemdata");
66
define('DB_PROJECT',"project");
67
68
// --- default URL for project section --- //
69
define('VIEWER_URL', BASE_URL."3wviewer.php?expId=");
70
define('SUMMARY_URL', BASE_URL."summary.php?expId=");
71
define('UPLOAD_URL', BASE_URL."processing/uploadimage.php");
72
73
// --- Set cookie session time -- //
74
define('COOKIE_TIME', 0); //0 is never expire.
75
76
// --- defaut user group -- //
77
define('GP_USER', 'users');
78
79
// --- XML test dataset -- //
80
$XML_DATA = "test/viewerdata.xml";
81
82
// --- Set Default table definition -- //
83
define('DEF_PROCESSING_TABLES_FILE', "defaultprocessingtables.xml");
84
define('DEF_PROCESSING_PREFIX',"ap");
85
86
// --- Set External SQL server here (use for import/export application) -- //
87
// --- You can add as many as you want, just copy and paste the block -- //
88
// --- to a new one and update the connection parameters -- //
89
// --- $SQL_HOSTS['example_host_name']['db_host'] = 'example_host_name'; -- //
90
// --- $SQL_HOSTS['example_host_name']['db_user'] = 'usr_object'; -- //
91
// --- $SQL_HOSTS['example_host_name']['db_pass'] = ''; -- //
92
// --- $SQL_HOSTS['example_host_name']['db'] = 'legniondb'; -- //
93
94
$SQL_HOSTS[DB_HOST]['db_host'] = DB_HOST;
95
$SQL_HOSTS[DB_HOST]['db_user'] = DB_USER;
96
$SQL_HOSTS[DB_HOST]['db_pass'] = DB_PASS;
97
$SQL_HOSTS[DB_HOST]['db'] = DB_LEGINON;
98
99
// --- path to main --- //
100
set_include_path(dirname(__FILE__).PATH_SEPARATOR
101
.dirname(__FILE__)."/project".PATH_SEPARATOR
102
.dirname(__FILE__)."/lib".PATH_SEPARATOR
103
.dirname(__FILE__)."/lib/PEAR");
104
105
// --- add plugins --- //
106
// --- uncomment to enable processing web pages -- //
107
addplugin("processing");
108
109
define('DEFAULT_APPION_PATH',"/ami/data00/appion/");
110
111
// --- Add as many processing hosts as you like -- //
112
// --- Please enter your processing host information associate with -- //
113
// --- Maximum number of the processing nodes -- //
114
// --- $PROCESSING_HOSTS[] = array('host' => 'host1.school.edu', 'nproc' => 4); -- //
115
// --- $PROCESSING_HOSTS[] = array('host' => 'host2.school.edu', 'nproc' => 8); -- //
116
117
$PROCESSING_HOSTS[] = array('host' => 'guppy.scripps.edu',
118
							'nproc' => 8,
119
							'nodesdef' => '2',
120
							'nodesmax' => '8',
121
							'ppndef' => '8',
122
							'ppnmax' => '8',
123
							'reconpn' => '8',
124
							'walltimedef' => '2',
125
							'walltimemax' => '2',
126
							'cputimedef' => '2',
127
							'cputimemax' => '2',
128
							'memorymax' => '30',
129
							'appionbin' => '/opt/myamisnap/bin/appion/',
130
							'baseoutdir' => DEFAULT_APPION_PATH,
131
							'localhelperhost' => 'guppy.scripps.edu',
132
							'dirsep' => '/' );
133
134
$PROCESSING_HOSTS[] = array('host' => 'garibaldi.scripps.edu', 
135
							'nproc' => 8,
136
							'nodesdef' => '16',
137
							'nodesmax' => '280',
138
							'ppndef' => '4',
139
							'ppnmax' => '8',
140
							'reconpn' => '4',
141
							'walltimedef' => '240',
142
							'walltimemax' => '240',
143
							'cputimedef' => '240',
144
							'cputimemax' => '240',
145
							'memorymax' => '30',
146
							'appionbin' => '~bcarr/appionbin/',
147
							'baseoutdir' => '', //sends appion procession output to a location under the users home directory on the remote host
148
							'localhelperhost' => 'amibox03.scripps.edu',
149
							'dirsep' => '/' );
150
151
152
// --- register your cluster configure file below i.e (default_cluster) --- //
153
// --- $CLUSTER_CONFIGS[] = 'cluster1'; -- //
154
// --- $CLUSTER_CONFIGS[] = 'cluster2'; -- //
155
156
//$CLUSTER_CONFIGS[] = 'guppy_cluster';
157
//$CLUSTER_CONFIGS[] = 'garibaldi';
158
//$CLUSTER_CONFIGS[] = 'test1_cluster';
159
//$CLUSTER_CONFIGS[] = 'test2_cluster';
160
161
// --- Microscope spherical aberration constant
162
// --- Example : 2.0 --- //
163
define('DEFAULTCS',"2.0");
164
165
// --- Restrict file server if you want --- //
166
// --- Add your allowed processing directory as string in the array
167
$DATA_DIRS = array();
168
169
// --- Enable Image Cache --- //
170
define('ENABLE_CACHE', false);
171
// --- caching location --- //
172
// --- please make sure the apache user has write access to this folder --- //
173
// --- define('CACHE_PATH', "/srv/www/cache/"); --- //
174
define('CACHE_PATH',"");
175
define('CACHE_SCRIPT', WEB_ROOT.'/makejpg.php');
176
177
// --- define Flash player base url --- //
178
define('FLASHPLAYER_URL', "/flashplayer/");
179
180
// --- define python commands - path --- //
181
182
// to download images as TIFF or JPEG
183
// $pythonpath="/your/site-packages";
184
// putenv("PYTHONPATH=$pythonpath");
185
186
// To use mrc2any, you need to install the pyami package which is part
187
// of myami. See installation documentation for help.
188
// --- define('MRC2ANY', "/usr/bin/mrc2any" --- //
189
define('MRC2ANY',"/usr/bin/mrc2any");
190
191
// --- Check if IMAGIC is installed and running, otherwise hide all functions --- //
192
define('HIDE_IMAGIC', false);
193
194
// --- Check if MATLAB is installed and running, otherwise hide all functions --- //
195
define('HIDE_MATLAB', false);
196
197
// --- hide processing tools still under development. --- //
198
define('HIDE_FEATURE', false);
199
200
// --- temporary images upload directory --- //
201
define('TEMP_IMAGES_DIR',"/tmp");
202
203
// --- use appion warpper --- //
204
define('USE_APPION_WRAPPER', true);
205
// --- define('APPION_WRAPPER_PATH', ""); --- //
206
define('APPION_WRAPPER_PATH',"/opt/myamisnap/bin/appion");
207
208
209
// --- sample tracking ---//
210
define('SAMPLE_TRACK', false);
211
212
// --- exclude projects in statistics. give a string with numbers separated by ',' ---//
213
// --- for example, "1,2" ---//
214
define('EXCLUDED_PROJECTS',"");
215
216
217
// --- hide processing tools still under development. --- //
218
define('HIDE_TEST_TOOLS', false);
219
220
$TEST_SESSIONS = array(
221
		'zz07jul25b'
222
		,'zz06apr27c'
223
		,'zz09feb12b'
224
		,'zz09apr14b'
225
		,'zz09feb18c'
226
	);
227
		
228
?>
229
</pre>