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