LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2009, 07:12 AM   #1
Raakh
Member
 
Registered: May 2007
Posts: 128

Rep: Reputation: 15
mod_jk configuration problem


Hi,

I am trying to configure mod_jk for the first time. installed jkd, tomcat and mod_jk but still unable to complete it

vps info:
Code:
Server version: Apache/2.2.3
apache-tomcat-6.0.20
jdk-6u14-linux-i586
centOS Enterprise Linux 5x
lxAdmin
/var/log/httpd/mod_jk.log
Code:
[Wed Jun 17 03:57:06 2009] [14515:4152821456] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
[Wed Jun 17 03:57:06 2009] [14516:4152821456] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
/var/log/httpd/error.log
Code:
[Wed Jun 17 03:57:06 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)[Wed Jun 17 03:57:06 2009] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Jun 17 03:57:06 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 17 03:57:06 2009] [notice] Digest: done
[Wed Jun 17 03:57:06 2009] [warn] No JkShmFile defined in 

httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Jun 17 03:57:06 2009] [notice] 

Apache/2.2.3 (CentOS) configured -- resuming normal operations

/usr/lib/apache-tomcat/logs
Code:
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 

/usr/java/jdk1.6.0_14/jre/lib/i386/client:/usr/java/jdk1.6.0_14/jre/lib/i386:/usr/java/jdk1.6.0_14/jre/

../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Jun 17, 2009 10:59:39 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 17, 2009 10:59:39 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 508 ms
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jun 17, 2009 10:59:40 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 17, 2009 10:59:40 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 17, 2009 10:59:40 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21  config=null
Jun 17, 2009 10:59:40 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 599 ms
/usr/lib/apache-tomcat/conf/server.xml
Code:
  <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    -->           
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the 
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

vi /etc/httpd/conf/workers.properties
Code:
workers.tomcat_home=/usr/lib/apache-tomcat
workers.java_home=/usr/java/default
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
inserted the following at bottom of /etc/httpd/conf/httpd.conf
Code:
LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
 
# Where to put jk logs
JkLogFile     /var/log/httpd/mod_jk.log
  
# Set the jk log level [debug/error/info]
JkLogLevel    info
   
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    
# JkOptions indicate to send SSL KEY SIZE,
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
     
# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"


# Send servlet for context / jsp-examples  to worker named worker1
JkMount  /jsp-examples ajp13

# Send JSPs  for context /jsp-examples/* to worker named worker1
JkMount  /jsp-examples/* ajp13
Kindly help me

Thanks & best regards
 
Old 06-17-2009, 12:12 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by Raakh View Post
Hi,

I am trying to configure mod_jk for the first time. installed jkd, tomcat and mod_jk but still unable to complete it

Kindly help me

Thanks & best regards
Unable to complete WHAT? What error(s) is it giving you? What problems are you having? How do you know it's not working? And this message:

Code:
No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Jun 17 03:57:06 2009] [notice]
needs to be addressed. Did you try defining that file?
 
  


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
problem in loading mod_jk & connectivety of tomcat5 and apache server for FC_5 ankitbansal Linux - General 1 02-11-2007 02:24 PM
mod_jk and Apache 2.2 gdeckler Linux - Enterprise 2 02-08-2007 03:08 PM
mod_jk.conf booga Linux - Software 4 05-15-2006 08:29 AM
FC3 - problem to compile mod_jk jdc32 Linux - Software 4 02-25-2005 05:04 AM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 09:28 AM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration