Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member202789
Contributor

·  Download and Install of Apache and Mod_jk

No Apache HTTPD 64 bit availability: http://wiki.apache.org/httpd/FAQ

In the Information for Windows User, it is recommended that 2.2 Apache HTTPD is the most stable version on Windows:

mod_jk download: Link http://tomcat.apache.org/download-connectors.cgi

·        Apache HTTPD and mod_jk installation:

Run the Apache .msi file you downloaded above. The installation will ask you for these things:

Click Next..      

Select I accept and Click Next..

               

Details of each option on Next Page

1.       Network Domain: Enter the DNS domain in which your server is or will be registered in. For example, if your server's full DNS name is server.mydomain.net, you would type mydomain.net here.

2.       Server Name: Your server's full DNS name. From the example above, you would type server.mydomain.net here.

3.       Administrator's Email Address: Enter the server administrator's or webmaster's email address here. This address will be displayed along with error messages to the client by default.

4.       For whom to install Apache Select for All Users, on Port 80, as a Service - Recommended if you'd like your new Apache to listen at port 80 for incoming traffic. It will run as a service (that is, Apache will run even if no one is logged in on the server at the moment) Select only for the Current User, on Port 8080, when started Manually if you'd like to install Apache for your personal experimenting or if you already have another WWW server running on port 80.

5.       The installation type. Select Typical for everything except the source code and libraries for module development. With Custom you can specify what to install. A full install will require about 13 megabytes of free disk space. This does not include the size of your web site(s).

6.       Where to install. The default path is C:\Program Files\Apache Software Foundation under which a directory called Apache2.2 will be created by default. You may specify any other Path here               

Click Next..

The installation has completed successfully. You will see the Apache in All Programs list

·        Installation of Mod_jk

There is no installation or no executable required. We just need to copy mod_jk from the download directory to the new Apache (modules) Directory.

·        Configuration of Tomcat

  1. Server.xml

I.           

  1:

2:

III.          2:

s

sssss      3: 

  

·  Worker.Properties configuration:

We need to create this file in conf directory of Apache with below lines

---------------------------------------------------------------------

  1. worker.list=balancer
  2. worker.worker1.port=8009
  3. worker.worker1.host=<Tomcat 1 IP Address>
  4. worker.worker1.type=ajp13
  5. worker.worker1.lbfactor=1
  6. worker.worker2.port=8009
  7. worker.worker2.host=<Tomcat 2 IP Address>
  8. worker.worker2.type=ajp13
  9. worker.worker2.lbfactor=1
  10. worker.balancer.type=lb
  11. worker.balancer.balance_workers=worker1,worker2
  12. worker.balancer.method=B
  13. Worker.balancer.sticky_session=True

---------------------------------------------------------------------

·    Httpd.conf configuration: Add below given entries

---------------------------------------------------------------------

LoadModule    jk_module  modules/mod_jk.so

JkWorkersFile "<Installation Directory>/Apache Software Foundation/Apache2.2/conf/workers.properties"

JkLogFile "<Installation Directory>/Apache Software Foundation/Apache2.2/mod_jk.log"

JkLogLevel debug

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

JkMount /* balancer

---------------------------------------------------------------------

·   Web.xml configuration for BusinessObjects Session serialization:

The entry of distributable=true needs to be manually done. <BI 4.0 Install Home directory>\Tomcat6\webapps\BOE\WEB-INF\web.xml

Restart Apache

Tomcat Load Balancing now is configured.

25 Comments
Labels in this area