Install the Web Interface » History » Version 2
Amber Herold, 04/15/2010 03:51 PM
1 | 1 | Amber Herold | h1. Install the Web Interface |
---|---|---|---|
2 | |||
3 | Install php and java scripts for viewing images and Leginon information through the web server. |
||
4 | 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 | |||
9 | 1. Move the myami/myamiweb directory to your Apache web directory |
||
10 | |||
11 | Example: |
||
12 | <pre> |
||
13 | > cd [webdirectory] // /var/www/html in this example |
||
14 | > cp [path_to_myami_download_location]/myami/myamiweb . |
||
15 | </pre> |
||
16 | |||
17 | 2. Copy config.php.template to config.php and edit the latter by adding these MySQL parameters: |
||
18 | "config.php" should be located in /var/www/html/myamiweb/ on CentOS and /srv/www/htdocs/myamiweb/ on SuSE. |
||
19 | |||
20 | <pre> |
||
21 | <?php |
||
22 | // --- define myamiweb tools base --- // |
||
23 | |||
24 | // This should be changed if the myamiweb directory is located |
||
25 | // in a sub-directory of the Apache web directory. |
||
26 | // ex. myamiweb is in /var/www/html/applications/myamiweb/ then |
||
27 | // change to define('BASE_PATH',"applications/myamiweb"); |
||
28 | define('BASE_PATH',"myamiweb"); |
||
29 | |||
30 | // Administrator email address |
||
31 | define('ADMIN_EMAIL', "example@scripps.edu"); |
||
32 | |||
33 | // --- Set your MySQL database server parameters |
||
34 | define('DB_HOST', "localhost"); // DB Host name |
||
35 | define('DB_USER', "usr_object"); // DB User name |
||
36 | define('DB_PASS', ""); // DB Password |
||
37 | define('DB_LEGINON', "leginondb"); // Leginon database name |
||
38 | define('DB_PROJECT', "projectdb"); // Project database name |
||
39 | </pre> |
||
40 | |||
41 | * Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php` |
||
42 | |||
43 | <pre> |
||
44 | addplugin("processing"); |
||
45 | </pre> |
||
46 | |||
47 | * Copy `myamiweb/processing/config_processing.php.template` to `myamiweb/processing/config_processing.php` |
||
48 | * Edit `myamiweb/processing/config_processing.php` |
||
49 | |||
50 | <pre> |
||
51 | $PROCESSING_DB_HOST = "your_db_host"; |
||
52 | $PROCESSING_DB_USER = "usr_object"; |
||
53 | $PROCESSING_DB_PASS = ""; |
||
54 | $PROCESSING_DB = ""; |
||
55 | </pre> |
||
56 | |||
57 | Remember that the last line should be kept empty as this will be set dynamically. |
||
58 | We will not include the processing host or cluster registration now. It is covered in the last part of this document. |
||
59 | |||
60 | 3. Test the set-up by visiting http://yourhost/myamiweb |
||
61 | 2 | Amber Herold | |
62 | ______ |
||
63 | |||
64 | [[Install the MRC PHP Extension|< Install the MRC PHP Extension]] | [[Potential Problems|Potential Problems >]] |