Skip to content

Deployment Production(Linux)

Rahul Yadava edited this page Aug 4, 2016 · 3 revisions

Deployment on a fresh amazon(linux) machine with Apache and Reverse Proxy

  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.70/bin/apache-tomcat-7.0.70.tar.gz
    tar -xvzf apache-tomcat-7.0.70.tar.gz or, sudo apt-get install tomcat7

  5. Install Apache sudo apt-get install apache2

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

  7. 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/
    
  8. Enable imanage virtual host sudo a2ensite imanage.conf

  9. Restart apache server

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

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

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

  13. 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

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

  15. Create a directory to store solr_data.

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

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

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

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

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

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

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

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

  24. create users and projects

Clone this wiki locally