How to deploy my war file (website) in cPanel?

azizmb

Registered
Jan 9, 2014
2
0
1
cPanel Access Level
Website Owner
Hi,

I'm a beginner and I have created my website using Java EE - Eclipse. I used Apache Tomcat v7 server. I decided to go online and I bought a web hosting service from GoDaddy. I have access to the cPanel now and I know how to make one html page online by adding it to the public_html folder. My question is how can I make my website that I created and I have in a war file be online. Where should I upload the war file exactly? Is there anything I need to install first? Detailed answers please.

- - - Updated - - -

I created my website with Java servlets to be clear.
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
Depends what service you have with godaddy, they stopped providing java support to shared hosting a while back so unless you have an old account you likely won't have it. If you have a server with them there is information in their knowledge base, either way you might be better off contacting them directly, whether for advice or a refund.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

You can find information about WAR files at:

How to deploy Java applications

However, you will need to consult with your web hosting provider to see if they offer this service.

Thank you.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
You first need to ask your host if they offer Tomcat. Not all hosts run Tomcat on their servers. If your host does offer Tomcat, your host can help you deploy your application.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
It's explained here:

How to deploy Java applications

Feel free to review that document and let us know if you have any questions. Note that your hosting provider must allow you to utilize this service. Please contact them and ensure it's possible before proceeding.

Thank you.
 

azizmb

Registered
Jan 9, 2014
2
0
1
cPanel Access Level
Website Owner
This is the answer to my question from GoDaddy: All hosting accounts purchased after 7/11/2011 do not support Java. Existing accounts with Java enabled are not affected by this update — unless you manually disable Java. Once disabled, there you cannot re-enable Java.

- - - Updated - - -

[updated] This is the answer to my question from GoDaddy: All hosting accounts purchased after 7/11/2011 do not support Java. Existing accounts with Java enabled are not affected by this update — unless you manually disable Java. Once disabled, there you cannot re-enable Java.