Skip to main content

Tomcat for EasyApache 4

Comments

15 comments

  • Eminds
    Tomcat is not supported in Easy Apache 4 Current Status of EasyApache 4 - EasyApache 4 - cPanel Documentation
    0
  • Anoop P Alias
    You simply poxy to tomcat using Apache httpd or an nginx frontend. Some plugins in cPanel App Catalog :: Web Server Alternatives support Java/Tomcat/ColdFusion etc GoodLuck!
    0
  • cachout58
    Thank you guys for your replies. I believe those plugins work only in easy apache 3 and not in 4. We are working for a module with easy apache 4. Any idea on how to avoid the error mentioned and how to make use of jsvc
    0
  • Anoop P Alias
    The plugin works with EA4 too as it simply proxies to tomcat on the http port . cPanel use ajp and its a binary protocol and needs additional module support from apache httpd end .It probably might be more advanced than http . But you can easily implement a reverse proxy to tomcat (over http protocol) with mod_proxy which is standard in httpd. The plugin I mention is a nginx plugin and it simply reverse proxies to tomcat just like it does to apache httpd
    0
  • cachout58
    The part that deals with apxs and ajp is over. We have crossed that bridge. We have some 10 % work left out which involves jsvc and fixing that error during a rare case of httpdconf rebuild. The reverse proxy method which you suggested has some limitations when deployed in a high availability environment. Thats why the cpanel method of apxs and ajp is best suited for cpanel servers. Any help from cpanel developers ?
    0
  • cPanelJasonT
    Hello, The suggestions provided here are good. I'd also recommend voting up support for this in the following feature request: Tomcat Support in EasyApache 4
    0
  • cachout58
    We have already voted there. We were asked to raise this issue in the forum for any help in jsvc. Thats why we created this thread. Any help in jsvc implementation ?
    0
  • cPanelMichael
    Hello, I'm not aware of any additional workarounds that would address the issue with EasyApache 4. You may want to consult with a system administrator to see if custom work could be completed to get it working. You can find a list of system admin services on the following URL: System Administration Services | cPanel Forums Thank you.
    0
  • MarcoP
    Last month I was able for the first time to upgrade from EasyApache 3 to EasyApache 4 and still keeping, in that case, Confluence working. - If you use MPM ITK, build a new profile using a different MPM and if you need to, at the very end, return to your preferred profile. - Upgrade EasyApache. - Handpick your Tomcat proxies from /usr/local/apache.ea3/conf/userdata/... and copy them to /etc/apaches/conf.d/userdata/... - Copy and rename jk.conf
    cp /usr/local/apache.ea3/conf/jk.conf /etc/apache2/conf.modules.d/991_mod_jk.conf
    - Load the module
    ex -sc '1i|LoadModule jk_module modules/mod_jk.so' -cx /etc/apache2/conf.modules.d/991_mod_jk.conf
    - Create mod_jk.so softlink
    ln -s -t /etc/apache2/modules /usr/local/apache.ea3/modules/mod_jk.so
    - Check and if all good reload Apache config
    apachectl -t service httpd graceful
    Done! All should be working now. Return to MPM ITK if you need to. Hope it helps, cheers.
    0
  • jndawson
    Last month I was able for the first time to upgrade from EasyApache 3 to EasyApache 4 and still keeping, in that case, Confluence working.

    Do you have any suggestions for new installs with EA4 since EA3 isn't provided/supported in new releases?
    0
  • MarcoP
    Do you have any suggestions for new installs with EA4 since EA3 isn't provided/supported in new releases?

    I don't have a box where to test in advance, but i guess installing easy-tomcat7 is a start. I'm not even sure how long easy-tomcat7 will stll be available and or if updates will be pushed into repos... my main concern would be either choose the EasyApache way or yours, after all you need Apache+Connector+Tomcat.
    0
  • Nirjonadda
    CentOS 7.4 ship tomcat packages with openssl 1.0.2 support ... ;) How to install openssl-devel 1.0.2 on centos 7 - CentOS
    0
  • MarcoP
    Hello, I'd like to follow-up my tweaks and let you know everything is still up and running smoothly even after last updates. One think I've modified from the above guide is moving, instead of soft-linking, mod_jk.so. Cheers.
    0
  • cachout58
    Hi Marco, Have you tried your steps in fresh easyapache 4 servers yet ? Because the jsvc issue which we are facing is in easyapache 4 servers [ basically a new server with easy apache 4 direct ] We could re-create 95% of the features as in cpanel. Only big issue is jsvc, other than small issues.
    0
  • MarcoP
    Hi Marco, Have you tried your steps in fresh easyapache 4 servers yet ? Because the jsvc issue which we are facing is in easyapache 4 servers [ basically a new server with easy apache 4 direct ] We could re-create 95% of the features as in cpanel. Only big issue is jsvc, other than small issues.

    This weekend I'll come back from my long deserved holiday trip, get a cPanel trial licence and test on a CentOS 7 vm as I will need my self to move on from CentOS 6. I will keep you updated as I'll be facing the same issue.
    0

Please sign in to leave a comment.