SUSE Conversations


iManager 2.7 and Apache in 64-bit Linux environment without mod_jk



By: paulsenj

March 14, 2012 11:56 am

Reads:660

Comments:0

Rating:0

As you may have noticed (that’s why you are here) mod_jk is no longer available to modern Linux RHEL / CentOS / SUSE platforms. The official recommendation is to use AJP protocol to communicate between Tomcat and Apache instances and that’s why AJP proxy module is available in most Linux distributions today. AJP stands for Apache JServ Protocol and it is used as a persistent, packet oriented connection between the Tomcat and Apache instances.

This short guide will show how to make iManager work with Apache using AJP protocol.

First you need to fulfill certain prequisites:

  • All iManager prequisites, read the documentation
  • Working Apache installation with SSL
    • Apache + SSL installation in CentOS / RHEL:
      yum install httpd mod_ssl
    • Apache + SSL installation in SUSE:
      zypper in apache2 apache2-prefork

And then to the integration itself. Do the following steps:

  • Install iManager with silent option. Feel free to try it standard way but it seems CentOS and possibly RHEL installation will only succeed with the silent option.
    ./iManagerInstallLinux.bin -i silent
  • Novell programmers have been kind enough to preconfigure us an AJP port but let’s make sure it is there. Open file /etc/opt/novell/tomcat5/server.xml with your favourite file viewer
    less /etc/opt/novell/tomcat5/server.xml

    and ensure that the following lines are present and not commented out

    <Connector port="9009" 
                   enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
  • Add the connector configuration to Apache. Create a file to httpd configuration directory
    • in CentOS / RHEL /etc/httpd/conf.d/nps-Apache-ajp13.conf
    • in SUSE: /etc/apache2/conf.d/nps-Apache-ajp13.conf

    and use following content (please note the SUSE lines in the content)

    #in Suse uncomment the following
    #LoadModule proxy_ajp_module /usr/lib64/apache2-prefork/mod_proxy_ajp.so
    
    ProxyPass /nps ajp://localhost:9009/nps
    ProxyPassReverse /nps ajp://localhost:9009/nps
    
    <Location "/nps>
        Options +FollowSymLinks
    </Location>
    
    <Location "/nps">
        Options MultiViews FollowSymLinks
        Order allow,deny
        Allow from all
    </Location>
    
    <Location "/nps/WEB-INF/">
        deny from all
    </Location>
    
    <Location "/nps/META-INF/">
        deny from all
    </Location>
  • Check and use
    • in CentOS / RHEL
      service httpd configtest
      service httpd start
    • in SUSE
      service apache2 configtest
      service apache2 start
    • in both
      service novell-tomcat5 start
  • Make services start by default
    chkconfig novell-tomcat5 on
    • in CentOS / RHEL
      chkconfig httpd on
    • in SUSE
      chkconfig apache2 on
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags:
Categories: iManager, Technical Solutions

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

Comment

RSS