Skip to content

Server Deployment

Nimisha Gupta edited this page Jul 25, 2016 · 1 revision
  1. Download the bundle from here.

  2. Install MySql.
    sudo apt-get install mysql-server

  3. Create Databases.
    mysql -u root -p < $server_bundle/ServerApps/db/mysql_database_schema.sql

  4. Install Tomcat.
    wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.65/bin/apache-tomcat-7.0.65.tar.gz
    tar -xvzf apache-tomcat-7.0.65.tar.gz or, sudo apt-get install tomcat7

  5. Export JAVA_HOME in System Environment.
    export JAVA_HOME=JAVA_HOME_PATH

  6. Move iManage webapp in the $server_bundle/WebApps to tomcat/webapps.

  7. Update Database related properties in context.xml.
    verify database url, database driver, database username and password

  8. Create following directories on the server machine and update the corresponding locations in context.xml.
    log_storage, storage_root, movie_storage, image_cache_storage, task_log_storage, backup_storage, export_storage, zoom_storage

  9. Move solr webapp in the $server_bundle/WebApps/ to tomcat/webapps.

  10. Create a directory to store solr_data.

  11. Update solr/home path in solr/WEB-INF/web.xml with the created directory

  12. Extract cache-deploy in $server_bundle/ServiceApps. Update icache.properties for Logging.

  13. Extract worker-deploy in $server_bundle/ServiceApps. Update iworker.properties for Logging, Cache, Service, Solr, Database properties.

  14. Start cache.
    Run the script run-cache.sh in cache-deploy
    nohup ./run_cache.sh&

  15. Start tomcat.
    Run the script startup.sh in tomcat/bin

  16. Start worker.
    Run the script run-worker.sh in worker-deploy.
    nohup ./run_worker.sh&

  17. Server should be up at http://localhost:8080/iManage

  18. login using the admin credentials present in context.xml.

  19. create users and projects

Instructions to set Apache Proxy Server.

  1. Install Apache sudo apt-get install apache2

  2. Enable apache modules sudo a2enmod proxy proxy_ajp proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html

  3. Add new virtual host for imanage by copying 000-default.conf to imanage.conf and add the following lines to it

     ProxyPreserveHost On
     ProxyRequests Off
     ProxyPass / http://localhost:8080/
     ProxyPassReverse / http://localhost:8080/
    
  4. Enable imanage virtual host sudo a2ensite imanage.conf

  5. Restart apache server