Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

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

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-11-30, 12:44 PM CST
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; 2004-11-30 at 12:53 PM CST.
Reply With Quote
  #2  
Old 2005-06-25, 09:05 AM CDT
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 2005-06-27, 02:55 AM CDT
tariqtariq Offline
Registered User
 
Join Date: Jun 2005
Posts: 16
don't try it, it doesn't work !!!!
Reply With Quote
Reply

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 1 2008-02-22 02:16 PM CST
Tomcat and apache nayeemmz Software 2 2006-06-23 09:37 AM CDT
Apache and Tomcat Kevin Passey gmane.linux.redhat.fedora.general 2 2005-09-27 07:30 AM CDT
Apache and Tomcat RaCarter Servers 2 2004-09-20 02:13 AM CDT
Apache and JSPs/Tomcat RaCarter Software 5 2004-09-17 09:48 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 06:17 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Automatic translations (vBET) delivered by NLP-er