Install the Web Interface » History » Revision 4
Revision 3 (Amber Herold, 04/22/2010 02:03 PM) → Revision 4/56 (Eric Hou, 05/10/2010 02:42 PM)
h1. Install the Web Interface Install Leginon php and Appion web tools java scripts for viewing images and image processing Leginon information 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: <pre> > cd [webdirectory] // /var/www/html in this example > cp [path_to_myami_download_location]/myami/myamiweb . </pre> 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. <pre> <?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 </pre> * Enable the processing plug-in by uncommenting out the following line in the file`myamiweb/config.php` <pre> addplugin("processing"); </pre> * Copy `myamiweb/processing/config_processing.php.template` to `myamiweb/processing/config_processing.php` * Edit `myamiweb/processing/config_processing.php` <pre> $PROCESSING_DB_HOST = "your_db_host"; $PROCESSING_DB_USER = "usr_object"; $PROCESSING_DB_PASS = ""; $PROCESSING_DB = ""; </pre> 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|< Install the MRC PHP Extension]] | [[Potential Problems|Potential Problems >]] ______