Please note that the reason we put Apache in the front-end is because it is lighter, easier to configure and, after all, it deals better with high amounts of traffic.
In any case, to remove Apache, you should also do these steps (supposing that
/opt/bitnami is your installation directory):
- Stop the Apache server:
sudo /opt/bitnami/ctlscript.sh stop apache
- Rename the
sudo mv /opt/bitnami/apache2/scripts/ctl.sh /opt/bitnami/apache2/scripts/ctl.sh.disabled
I would not remove the directory, just in case.
After that, note that you will have to configure Tomcat so it can run on port 80. We already do this in our Tomcat's CTL script (located in
/opt/bitnami/apache-tomcat/scripts/ctl.sh), but you have to modify two variables in this script manually:
Make sure you have a Tomcat user in your system (e.g. with
sudo su tomcat).
After that, and making sure your server.xml was modified correctly, you should be able to start your Tomcat server without issues.
If it doesn't work, could you check if any logs appear in Tomcat's log directory related to the error that's happening? The error log file is:
I hope it helps!