How to enable tomcat for a domain under your cpanel server? # /usr/local/cpanel/scripts/addservlets2 --domain=domain.com That’s it.