Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th November 2004, 07:44 PM
LeAkEd Offline
Registered User
 
Join Date: Nov 2004
Posts: 61
Talking FC2 + Apache 2 + Tomcat 5

Hi guys,
I noticed a few unresolved posts regarding the use of Apache and the JK2 connector with Tomcat 5 on Fedora Core (1 and above). Well, I never really needed both till today... Like many, I spent a few frustrating hours, but finally got it going by cut & pasting bits and pieces of tutorials and how tos that were not Fedora-specific.

Here is a quick summary of how I got this setup to work without having to compile everything from scratch (I'm a big fan of up2date ;o) - I may edit this later to make it more detailed:

1) Download and install J2SDK 1.4.2 RPM off SUN's site,
2) Download and uncompress Tomcat 5 off of Apache's site (you may want to make a service configuration file such as "tomcatd" so you can add Tomcat as a boot service),
3) Download and install Apache 2.0.50 via the "up2date httpd" command,
4) Download and install mod_jk2 connector via the "up2date mod_jk2" command,
5) Download and uncompress Fedora-Core-1-i386.tar.gz (you'll find it here: http://www.apache.org/dist/jakarta/t...inaries/linux/) to a tmp directory,
6) Copy the libjkjni.so file from the uncompressed directory to /usr/lib/httpd/modules/,
7) Create a symbolic link of that file in the J2SDK librairies directory: ln -s /usr/java/j2sdk1.4.2_05/jre/lib/i386/libjkjni.so libjkjni.so,
8) Since up2date already did most of the hard JK2 configuration for Apache, finish up the installation by following these simple modifications starting at #5: http://mikepalmer.net/howto/tomcat/mod_jk2.html,
9) Add "tomcatd" and "httpd" to the boot sequence, start "tomcatd", start "httpd" and you should be able to use Tomcat's Manager application via Apache on port 80 (http://localhost/manager/html),
10) Don't forget to open up port 80 in your firewall so others can access your apache server!!! If you need to have access to your Tomcat web applications, just stop apache and tomcat, add a connector mapping to your webapps's context in /usr/local/apache/conf/workers2.properties such as:
[uri:/my_web_app/*]
worker=ajp13:localhost:8009

I did all the above on my FC2 box and both Apache 2 and Tomcat 5 are playing nice together.

Last edited by LeAkEd; 30th November 2004 at 07:53 PM.
Reply With Quote
  #2  
Old 25th June 2005, 04:05 PM
tariqtariq Offline
Registered User
 
Join Date: Jun 2005
Posts: 16
Hello
I will try your configuration under Fedora core 3 , if you are still alive please reply to us to ask you some questions .
thanks
Reply With Quote
  #3  
Old 27th June 2005, 09:55 AM
tariqtariq Offline
Registered User
 
Join Date: Jun 2005
Posts: 16
don't try it, it doesn't work !!!!
Reply With Quote
Reply

Tags
apache, fc2, tomcat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Apache/Tomcat mod_jk MarkE Servers & Networking 1 22nd February 2008 09:16 PM
Tomcat and apache nayeemmz Using Fedora 2 23rd June 2006 04:37 PM
Apache and Tomcat RaCarter Servers & Networking 2 20th September 2004 09:13 AM
Apache and JSPs/Tomcat RaCarter Using Fedora 5 18th September 2004 04:48 AM


Current GMT-time: 03:13 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat