LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-07-2007, 04:24 PM   #1
Idrisk
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 10

Rep: Reputation: 0
Apache2.24-Tomcat6.0.1- JK 1.2.21 how to ??


Hello, not sure if I am posting this thread in the correct place, if not please let me know where to post this type of thread and will move it.

I am new to this... so please be gentle
I am trying to set up Apache/Tomcat using the jk1.2.21 connectors on SUSE linux 10.

I have managed to get Apache, working and Tomcat working without any problems.
I am not sure how to do the connectors part and I cannot find any good material on the web on how to do this.

I have followed the following instructions


1. Download
jakarta-tomcat-connectors-jk1.2.21-src.tar.gz


2. Uncompress it and extract the tar file.

3. cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

4. chmod u+x configure

5. Run configure with:

./configure \
--with-apxs2=<apache-root-directory>/bin/apxs \
--with-tomcat41=<tomcat-root-directory> \
--with-java-home=<java-root-directory> \
--with-jni \
--with-pcre

For example:

./configure --with-apxs2=/usr/local/apache/bin/apxs \
--with-tomcat41=/home/tomcat \
--with-java-home=/usr/java \
--with-jni \
--with-pcre

6. Run make

7. The two .so files (mod_jk2.so and jkjni.so) will be
in:

jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2

8. Copy those to files to
<apache-root-directory>/modules with the
proper permissions.

9. Configure Apache and Tomcat

10. Restart and enjoy



I enter the following
./configure --with-apxs=usr/local/apache2/bin/apx
--with-tomcat=/usr/local/tomcat
--with-java-home=/usr/local/java/jdk1.6.0
--with-jni
and I get the following errors

no apxs given
no apache given
no netscape given
configure: error: Cannot find the WebServer


Does anyone know why i am getting the above errors ?
Do I need to edit the httpd.conf file ? if so what do I edit/enter ?
Do I need netscape ? I am using Konquerer.
Does anyone know of a good reference site for getting this information, i have tried many but none have really helped.

All help greatly appreciated.
thanks

Last edited by Idrisk; 03-07-2007 at 04:28 PM.
 
Old 03-08-2007, 02:04 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You have several errors in your ./configure command. Since you're using apache2 you should use "--with-apxs2" in your ./configure. Also the path is not correct. Try:
Code:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --other-options
After compiling mod_jk you should follow the instuctions here to configure apache and tomcat to work together.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
Apache2 - how to get rid of apache2-default ozymandias Linux - Server 4 09-12-2008 10:27 AM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt Suse/Novell 14 04-18-2006 11:36 AM
Apache2 apache2-common WebDav timgerr Linux - Networking 1 08-25-2005 09:41 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration