Solved

Installing the mod_jk.so with Apache DSO 1.3.22 and Tomcat 3.2.1

Posted on 2002-04-10
7
272 Views
Last Modified: 2008-02-01
Hello,

I would like so advice to install the mod_jk.so for Apache 1.3.22 to bridge with 3.2.1. First, just a word about the platform.

Sun Solaris 2.8
Apache 1.3.22
Tomcat 3.2.1

Problem I am unable to install this module, using the notes from Apache.org as I am unable to find the ./build-unix.sh, ./build-solaris.sh and Apache apxs binary does not work when I type in the following

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c

When I type this command in I recieve an message, infortunately I cannot remember the specific message. I am unable to replicate it as I am running some tests on a different on the same platform.

Please could someone explain each section of the command so I am able to understand what each option does?

What happens if the $TOMCAT_HOME/native/mod_jk/apache_x is not installed during its installation?

This is true in my case so I have downloaded it from apache.

Which directory should I locate the mod_jk.so to be installed?

Also how would I install the mod_jk.so from a directory like $APACHE_HOME/Apache1.3.22/bin

Any other information would be appreciated.

Many thanks in advance

hawkers

0
Comment
Question by:hawkers
  • 4
  • 3
7 Comments
 
LVL 15

Expert Comment

by:samri
Comment Utility

Try using -i -a -c switch, and substitute the <libs> <and <inc> accordingly.  Relative path (../../libs), but might as well try with absolute path.    And try to use absolute path to your apxs, rather than $APACHE_HOME/bin.  Well maybe your have that define.  Just a note.

Try this one:
/usr/local/apache/bin/apxs -I<inc> -L<libs> -i -a -c mod_jk.c

This should compile the module, copy the modules files to you libexec dir, and activate the module in httpd.conf

The compile error messages is important to determine what's wrong.  Maybe some of the includes or libraries cannot be located.

good luck.
0
 
LVL 2

Author Comment

by:hawkers
Comment Utility
samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
0
 
LVL 15

Accepted Solution

by:
samri earned 250 total points
Comment Utility
/export/Apache1.3.22/bin/apxs -DSOLARIS I../jk -I/usr/java/include -I/usr/java/include/solaris -i -a -c mod_jk.c

And make sure you are in the same location as the mod_jk.c
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 2

Author Comment

by:hawkers
Comment Utility
samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
0
 
LVL 2

Author Comment

by:hawkers
Comment Utility
samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
0
 
LVL 2

Author Comment

by:hawkers
Comment Utility
samri

Thanks for your advice, however I have learnt that I need to complete a build installation for Tomcat 3.2.4, rather than a binary installation.

FYI

Before the installation of Tomcat you need the following packages

JAXP version 1.1
JSSE version 1.0.2
tomcat-servletapi
tomcat-ant

You may already know this, but I thought I would just share the info in anycase.

Thanks again

hawkers
0
 
LVL 15

Expert Comment

by:samri
Comment Utility
I'm prety much new to Tomcat.  I would have to say that you might have more experience that I did.   The recommendation that I gave are based on my understanding that you are building the modules for apache.

Yes.  the "developer" version is required because the mod_jk.c might have called some routines that is part of Tomcat include/header files.

I should have thought of that :) <-- always the case, once the solution is found, everybody will start yelling ... I knew it... as what I had thought.. blah blah...

Anyway, it's been great sharing the information.

Cheers.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now