Project

General

Profile

Actions

Install the Web Interface » History » Revision 4

« Previous | Revision 4/56 (diff) | Next »
Eric Hou, 05/10/2010 02:42 PM


Install the Web Interface

Install Leginon and Appion web tools for viewing images and image processing through the web server.
If you are installing your web server on a different machine than your processing server,
you need to download the myami code.
TODO: add a link to the myami code

1. Move the myami/myamiweb directory to your Apache web directory

Example:

> cd [webdirectory]   // /var/www/html in this example
> cp [path_to_myami_download_location]/myami/myamiweb .

2. Copy config.php.template to config.php and edit the latter by adding these MySQL parameters:
"config.php" should be located in /var/www/html/myamiweb/ on CentOS and /srv/www/htdocs/myamiweb/ on SuSE.

<?php
// --- define myamiweb tools base --- //

// This should be changed if the myamiweb directory is located 
// in a sub-directory of the Apache web directory.
// ex. myamiweb is in /var/www/html/applications/myamiweb/ then
// change to  define('BASE_PATH',"applications/myamiweb");
define('BASE_PATH',"myamiweb"); 

// Administrator email address
define('ADMIN_EMAIL', "example@scripps.edu");

// --- Set your MySQL database server parameters
define('DB_HOST', "localhost");        // DB Host name 
define('DB_USER', "usr_object");    // DB User name
define('DB_PASS', "");                // DB Password
define('DB_LEGINON', "leginondb");    // Leginon database name
define('DB_PROJECT', "projectdb");    // Project database name
  • Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php`
addplugin("processing");
  • Copy `myamiweb/processing/config_processing.php.template` to `myamiweb/processing/config_processing.php`
  • Edit `myamiweb/processing/config_processing.php`
$PROCESSING_DB_HOST = "your_db_host";
$PROCESSING_DB_USER = "usr_object";
$PROCESSING_DB_PASS = ""; 
$PROCESSING_DB = "";

Remember that the last line should be kept empty as this will be set dynamically.
We will not include the processing host or cluster registration now. It is covered in the last part of this document.

3. Test the set-up by visiting http://yourhost/myamiweb


< Install the MRC PHP Extension | Potential Problems >


Updated by Eric Hou over 14 years ago · 4 revisions