Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x => Topic started by: isotropic on July 18, 2025, 04:31:12 AM
-
Good evening, gentlemen.
I'm Isotropic, from Brazil. And I came to ask: can anyone help me install Apache Tomcat?
I use SME version 10.1.
I'd like to install Tomcat version 9.x, but I always get an error. It runs at boot but stops shortly after.
Stopping ProtocolHandler http-nio-8080.
Thank you.
-
This is not a 5 minute job.
A start is here
https://linuxize.com/post/how-to-install-tomcat-9-on-centos-7/
You can follow the first parts down to the systemd unit file.
Create that and then you will need a dropin file as per this:
https://forums.koozali.org/index.php/topic,54569.msg286027.html#msg286027
THisis the important bit:
/etc/systemd/system/tomcat.service.d/51custom.conf
[Install]
WantedBy= sme-server.target
(You can do the same thing but put it in /usr/lib/systemd/system is you prefer)
You will need a key:
config set tomcat service status enabled access public
Probably a post-upgrade/reboot and see if the service is up:
systemctl status tomcat
After that then you need to look at access - you could use AllowHosts and TCPPort keys in the config above to open ports and limit access.
Note :
In most cases, when running Tomcat in a production environment, you will use a load balancer or reverse proxy . It’s a best practice to allow access to port 8080 only to your internal network.
This is only a VERY rough and untested guide - you will lneed to do a lot of reading, and I suggest you build a test VM and experiment on that before using it in production.
Note also - v11 is around the corner. Instructions would be similar though.
-
Good evening.
Coming back to thank you for your help.
I was able to install and configure Tomcat. It's running perfectly thanks to the support I received.
Thank you.
Best regards.
-
Cool!!