LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-09-2008, 06:59 AM   #1
rajendrapoudel
LQ Newbie
 
Registered: Jul 2007
Posts: 28

Rep: Reputation: 15
Running Tomcat and Apache in one server


Does it is possible to run Apache server and Tomacat server in one Linux server?
 
Old 09-09-2008, 07:13 AM   #2
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
Yes it is possible, and very common. You can also run multiple instances of apache and tomcat on the same host is so inclined.
 
Old 09-11-2008, 02:41 AM   #3
rajendrapoudel
LQ Newbie
 
Registered: Jul 2007
Posts: 28

Original Poster
Rep: Reputation: 15
I am very new for Tomcat. and now my server is running Apache. So how i can install Tomcat in my server and how I can run it properly with out any other interruption to my Apache server.
 
Old 09-11-2008, 11:38 AM   #4
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
How to Install Tomcat depends primarily on what OS you're using. On RPM and DEB based linux it's rather easy and straight forward, others like Slackware/Gentoo will be a bit more involved.

Most modern distros usually include Tomcat with the distribution, you may want to have a look there first.

What flavor/version of linux are you running ?
What version of Tomcat do you need to install ?
Remember, Tomcat is a java servlet and thus requires Java. Older versions of Tomcat require the full JDK, newer versions can get by with just the JRE.

Feel free to review the documentation on the Tomcat website. http://tomcat.apache.org/

The documentation here is rather good, make sure you read the FAQ section too.
 
Old 09-13-2008, 09:59 AM   #5
rajendrapoudel
LQ Newbie
 
Registered: Jul 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks dbogdan ! My OS is CentoS 5.2. I have already installed Apache and PHP in my Server and I am running it as live web-server. Now I like to run tomcat sever as a webserver. I mean I want to run 2 webservers (Apache and Tomcat) simultaneously. How it will be possible?
 
Old 09-15-2008, 02:06 PM   #6
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
Centos is based on Redhat so you may want to look at installing tomcat from an RPM (should be easier) than installing from source.

Here's a link that goes into the details
http://www.howtoforge.com/forums/sho...d.php?p=113304

I don't have access to any redhat/centos builds so I can't give you step by step instructions unfortunately but a quick google search shows quite a few hits...

http://www.google.com/search?q=hot+t...rch&hl=en&sa=2

And this one that may present the most help...

http://www.centos.org/modules/newbb/...forumpost55054
 
  


Reply



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
java proxy server (running on tomcat) t0bias General 0 04-17-2008 08:20 AM
Running tomcat with apache? namgayp Linux - Server 1 01-17-2007 05:41 AM
Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir) jimieee Linux - Networking 0 03-23-2005 10:12 AM
Install tomcat as a module of Apache for running JSP kernelvn Linux - Networking 1 09-27-2004 11:41 PM
How to map apache to tomcat server? gogo Linux - Software 10 07-15-2002 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:13 AM.

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
Open Source Consulting | Domain Registration