Where can I find the Tomcat 7 installation folder on Linux AMI in Elastic Beanstalk?

MikeW picture MikeW · Sep 5, 2012 · Viewed 224.8k times · Source

I have a elastic beanstalk linux-tomcat ami instance with the sample application installed and working off the public dns. I'm able to ssh into the instance but cannot find where tomcat 7 lives (ie. the conf directory to edit server.xml). I've tried this with a 64 and 32 bit ami. Any ideas on where I might find this? I looked under:

/etc
/usr/share

I did find a elasticbeanstalk-tomcat7-deployment file under tmp (was empty).

I did a:

sudo yum install tomcat7

and the sample application is also being served up from :8080 and working on the public DNS. So I (think) have 2 tomcat servers running on the same beanstalk instance. In that case, I'm trying to find where the Tomcat 7 folders are (serving pages on port 80).

Answer

David Levesque picture David Levesque · Sep 5, 2012

Since late 2012, it is usually under /usr/share/tomcat7.

Prior to that, it was usually found under /opt/tomcat7.