Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
Last active July 24, 2017 16:44
Show Gist options
  • Save mohanpedala/2d27195c9d684ff80ac51a90671672e6 to your computer and use it in GitHub Desktop.
Save mohanpedala/2d27195c9d684ff80ac51a90671672e6 to your computer and use it in GitHub Desktop.
tomcat8 installation on rhel/centos

Tomcat Installation

https://www.vultr.com/docs/how-to-install-apache-tomcat-8-on-centos-7

Troubleshooting:

  1. Check whether catalina.sh / setenv.sh java paths match the JAVA_HOME
  2. Check the logs > catalina.out / the latest timestamp log file
To get access to the Manage app page:
  1. To access Manage App modify server.xml as suggested in the webpage

  2. Modify the configuration in context.xml as below

    allow="127.\d+.\d+.\d+|::1|0:0:0:0:0:0:0:1"

    Modify

    allow="\d+.\d+.\d+.\d+|::1|0:0:0:0:0:0:0:1"

Note: Value:d means allow access to all

  1. Add roles and users in tomcat-user.xml as suggested in the webpage

  <role rolename="manager-gui/>
  <user username="tomcat" password="password" roles="manager-gui"/>
  

Knowledge

  1. context.xml = IP allow for Manger app, etc..
  2. server.xml = http and https
  3. tomcat-user.xml = user permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment