Skip to content

Instantly share code, notes, and snippets.

@varunpalekar
Last active February 22, 2018 08:04
Show Gist options
  • Save varunpalekar/4a733f7f84066893696337bdcbaf903c to your computer and use it in GitHub Desktop.
Save varunpalekar/4a733f7f84066893696337bdcbaf903c to your computer and use it in GitHub Desktop.
Tomcat

Tomcat7 setup extra application instance on Ubuntu

  1. Install tomcat7-user package
  2. Run following command sudo tomcat7-instance-create -p 8081 -c 8006 tomcat7_odc
  3. Copy /etc/init.d/tomcat7 to /etc/init.d/tomcat7_odc for service file
  4. Make folder common if required in tomcat7_odc directory
  5. copy /etc/tomcat7/policy.d to tomcat7_odc/conf/policy.d
  6. copy server.xml to new installed conf folder if required.
  7. Copy /etc/default/tomcat7 to /etc/default/tomcat7_odc
  8. Change CATALINA_HOME=/usr/share/tomcat7 , CATALINA_BASE=/opt/tomcat7_odc and NAME=tomcat7_odc in file /etc/init.d/tomcat7_odc
  9. Change ownership of log folder to tomcat7
  10. Copy web.xml from previous tomcat7
  11. copy cp -rp /etc/tomcat7/Catalina/ conf/
  12. Chamnge permission to work folder to tomcat7
  13. Check things:
    1. /usr/share/tomcat7 folder is created or not.
    2. CATALINA_HOME in init service file should be /usr/share/tomcat7 depends on installtion directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment