Tomcat powered by Bitnami
Bitnami by VMware | 7.0.69-1 on Ubuntu 14.04.3Linux/Unix, Ubuntu 14.04.3 - 32-bit Amazon Machine Image (AMI)
Excellent
Used to set up a geoserver instance in 10mins - everything just works. Everything installed with self-explanatory documentation. I'm not an experienced linux sysadmin but I could understand everything and get it working. Fantastic, thanks so much!
- Leave a Comment |
- Mark review as helpful
Fast way to install Tomcat and MySQL
I am new to AWC amazon.
I needed to install Tomcat and MySQL to deploy a website.
My tries to directly use AWS amazon failed as I managed to install but I could not access it.
I found this product and installed, initially Tomcat7, which comes with MYSQL. It did work straightaway. Later I found a problem with Tomcat7 and my website so I removed it and from the same company I found Tomcat8 that I installed and it worked straightaway again. I deployed the website witch has been running fine.
A top product in a field of one
I've got to be careful because the title may appear sarcastically disparaging but that's not the intent. Really, this is the only LAMP stack I could find that includes Tomcat.
I like the bitnami stacks though they have their idiosyncrasies because everything is there. For example, httpd is in /opt/bitnami/apache/bin and the .conf files are in the same folder structure not /etc/ but when you get used to it, its OK.
A complaint I have is that Tomcat is accessed through Apache which is good but by using a <location> tag rather than by using a virtual host. This default arrangement is inflexible and in my view should be changed. By default everything is to be served up Tomcat but what if you want to have other, say PHP based, sites on the same server? Then you have to awkwardly exclude them from the location tag - which is what happens in the default configuration.
Tomcat is configured by the indirect inclusion of /opt/bitnami/apache-tomcat/conf/tomcat.conf into httpd.conf.
Here's my virtual host definition which includes Tomcat as one service within Apache using the AJP protocol (like FASTCGI for Tomcat).
<VirtualHost *:80>
ServerName yourdomain.com
ProxyPreserveHost On
ProxyPass / ajp://localhost:8009/
# ProxyPassReverseCookiePath /
</VirtualHost>
Monit is configured to monitor Apache and MySQL and another config can be added to monitor Tomcat as well. Look in the Bitnami documentation to see how monit is configured then clone the config for Apache and modify it for Tomcat. Hint: the catalina.pid file is in the Tomcap 'temp' directory.
Finally, the short-coming I can see is that a MySQL backup is missing. I found this script to backup any number of databases to an S3 bucket which works for me.
http://www.matt-helps.com/automatic-backup-of-mysql-database-to-s3/