Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 30th May 2006, 22:14
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1) In http://host:8080/ can you try executing the examples? And do they work?

2) Can you post your /etc/apache2/workers.properties

3) The fifteen last lines of your /etc/apache2/apache2.conf
Reply With Quote
Sponsored Links
  #12  
Old 30th May 2006, 23:50
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1) In http://host:8080/ both jsp examples and servlet examples are working

2) workers.properties file.. I have already posted this before. Let me post it again

workers.tomcat_home=/usr/local/tomcat/
workers.java_home=/usr/java/j2sdk1.4.2_06/
ps=/
worker.list=worker1
worker.default.port=8009
worker.default.host=hostname
worker.default.type=ajp13
worker.default.lbfactor=1

I replaced hostname with the real hostname (eg. abc.edu)

3) The fifteen last lines of your /etc/apache2/apache2.conf

I assume this is httpd.conf
But the last 15 lines are related to section 3: virtual hosts. I am posting the last few lines from Section 2: Main server configuration

JkWorkersFile "/etc/httpd/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
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 worker1
# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* worker1


Thanks
Reply With Quote
  #13  
Old 31st May 2006, 00:12
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you followed the manual line by line you would see that in 2) the first two lines differ.

workers.tomcat_home=/usr/local/tomcat/
workers.java_home=/usr/java/j2sdk1.4.2_06/

should be replaced by:

workers.tomcat_home=/usr/lib/apache-tomcat
workers.java_home=/usr/lib/jdk

And in 3) I cannot see that you load the jk_module

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

Try to take some time and check again the manual line by line copying and pasting the commands and if it does not work then get back here.

And since you are using httpd.conf this means you are not using Debian 3.1 so it might be a problem with your distro. In Debian we use apache2.conf for the configuration file.
Reply With Quote
  #14  
Old 31st May 2006, 22:35
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had

workers.tomcat_home=/usr/local/tomcat/
workers.java_home=/usr/java/j2sdk1.4.2_06/

because these are the actual locations for tomcat and java in my server. Is it necessary to change those lines to the ones you specified?.

In 3) I have the load module:

LoadModule jk_module modules/mod_jk.so

in httpd.conf along with the other LoadModules.

And yes I am not using Debian but I thought this manual would work for RedHat too. Thanks for your help.
Reply With Quote
  #15  
Old 1st June 2006, 11:11
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am sorry leorulez but I haven´t had the time to play with RH.

Maybe this manual could help you a bit more:

http://www.meritonlinesystems.com/do...at_redhat.html

Have you ever tried Debian
Reply With Quote
  #16  
Old 1st June 2006, 21:50
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks..but I have tried that procedure already. I have'nt tried Debian..did'nt want to mess around with the server which already has RedHat
Reply With Quote
  #17  
Old 3rd September 2006, 14:42
chrno chrno is offline
Member
 
Join Date: Apr 2006
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Default Step 7

Quote:
Step 6
./configure --with-apxs=/usr/bin/apxs2

Step 7
Now build the mod_jk with the following:
make
I ran Step 6 fine but I get the following error on Step7
Code:
make
bash: make: command not found
I followed your tutorial right to the word ... so I must be missing something ...

Any help/assistance will be much appreciated! Thanks!

chrno
Reply With Quote
  #18  
Old 3rd September 2006, 20:07
drks drks is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a base install of any OS is likely not going to include 'make'. You might need to do the following:

Code:
apt-get install make


On another note, I have actually written a similar Howto that you all may wish to cross reference:

http://5dollarwhitebox.org/wiki/inde...at_with_Mod_JK


I am waiting to get 'whitelisted' by one of the guys to that I can add the Howto here. Though this here article by fernandoch, it never hurts to read a couple different Howto's to get as much info as possible.
__________________
drks - http://www.5dollarwhitebox.org
Reply With Quote
  #19  
Old 4th September 2006, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by drks
I am waiting to get 'whitelisted' by one of the guys to that I can add the Howto here. Though this here article by fernandoch, it never hurts to read a couple different Howto's to get as much info as possible.
How do you mean that? Once you have a user account on HowetoForge (as you do), you can post tutorials. Have a look here: http://www.howtoforge.com/add_howto
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 17th February 2007, 22:27
DarkFoxDK DarkFoxDK is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

What is your reason for commenting out php types?

I uncommented them after completing the guide (great and easy guide by the way), and i don't see any problems yet.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How would I upgrade php, mysql, and apache for debian phantomk Installation/Configuration 10 4th June 2007 19:01
Hell of asp debian apache ColdDoT Installation/Configuration 2 15th March 2006 15:15
Apache and Tomcat problem! Urgent maroonworks Server Operation 3 24th February 2006 16:14
asp and asp.net on apache debian ColdDoT Installation/Configuration 9 12th February 2006 23:17
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 14:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.