morten_oelbye

Registered
Jul 15, 2019
3
0
1
Denmark
cPanel Access Level
Website Owner
Dear C-panel
I hav followed Your
How to Deploy Java Applications - cPanel Knowledge Base - cPanel Documentation
My - Removed - is resideing at atomcat webhotel.
that is I can only edit the htaccess
To be honest, I do not know how to ask the right question
My tomcat app work fine on my local computer
But now I also want to make them work on my DNS
You may try - Removed - phpinfo()
and - Removed -
Br Morten, dk
 
Last edited by a moderator:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @morten_oelbye,

Your forums profile shows your access level as "Website Owner". This indicates a lack of root access to the server. Is that correct? If so, I recommend reporting this to your web hosting provider so they can verify Tomcat is setup properly on the server.

Thank you.
 

morten_oelbye

Registered
Jul 15, 2019
3
0
1
Denmark
cPanel Access Level
Website Owner
The provider has made all the nessary changes, they say.
I am told to use .htaccess to move on.
But I do not where to put this .htaccess and what to put in it.
The directory in my cpanel is as follow:
/ea-tomcat85/bin/
/ea-tomcat85/conf/ with all the well known files
-------------------------------------------------
workers.properties ->
worker.list=myworker
worker.myworker.type=ajp13
worker.balancer.type=lb
worker.balancer.balance_workers=myworker
-------------------------------------------------
uriworkermap.properties ->
/farum=myworker
/ping=myworker
/nitz=myworker
-------------------------------------------------
/ea-tomcat85/lib/
/ea-tomcat85/logs/
/ea-tomcat85/run/
/ea-tomcat85/webapps/ Containing my servlet's (NO JSP)
/ea-tomcat85/work/Catalina/localhost/
/public_ftp/
/public_html/ all my html-files etc
/www/

and finally this .htaccess by the administrator
Containing:
-------------------------------------------------
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php71” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
-------------------------------------------------

I guess that an .htaccess in /ea-tomcat85/ should contain:
RewriteEngine on
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME myworker
Result
$_SERVER['JK_WORKER_NAME']myworker
But no SERVLET
Kindlist MBO
 

morten_oelbye

Registered
Jul 15, 2019
3
0
1
Denmark
cPanel Access Level
Website Owner
In windows I have this in my httpd.conf file
JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 9.0/conf/workers.properties"
JkMountFile "C:/Program Files/Apache Software Foundation/Tomcat 9.0/conf/uriworkermap.properties"
These are pointing to my Tomcat from my Apache.
But in C-PANEL I do not know where to start.
It is probadly simple, but please help.
Your C-PANEL Tomcat guide does not help me.
Br
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
Hello @morten_oelbye,

We recently published the following Tomcat guide:


Can you let me know if this helps?

Thank you.