LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2013, 02:33 PM   #1
Senthilv
Member
 
Registered: Jan 2011
Posts: 66
Blog Entries: 2

Rep: Reputation: 0
Is it possible to configure the two apache server in same OS?


Hai all,

I want to known is it possible to configure the two apache server in the same linux os itself ?
 
Old 06-10-2013, 02:41 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,278

Rep: Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523
Quote:
Originally Posted by Senthilv View Post
Hai all,

I want to known is it possible to configure the two apache server in the same linux os itself ?
Absolutely no idea what you're asking. Apache runs on an OS, and Linux is just one of them. Yes, you can run two instances on the same server, but there is absolutely NO reason to.
 
Old 06-10-2013, 02:57 PM   #3
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
I think it is a valid question.

Senthilv, correct me if I am wrong- but I think you're asking how to have an Apache server point to two separate sites/domains etc?

Immediately, I think of web hosting where one server hosts multiple sites. It's not something I think I'd ever set up/do myself, but simply as an "Oh hey! That's cool." thing, I'm curious to see how/if that would be possible.
 
Old 06-10-2013, 05:34 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,278

Rep: Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523Reputation: 6523
Quote:
Originally Posted by shane25119 View Post
I think it is a valid question.
Could very well be...but I'm not exactly sure WHAT the question is.
Quote:
Senthilv, correct me if I am wrong- but I think you're asking how to have an Apache server point to two separate sites/domains etc?

Immediately, I think of web hosting where one server hosts multiple sites. It's not something I think I'd ever set up/do myself, but simply as an "Oh hey! That's cool." thing, I'm curious to see how/if that would be possible.
It's virtual hosting...done all the time. One Apache server can serve up multiple domains.
 
Old 06-10-2013, 05:52 PM   #5
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
TB0ne, thanks for the clarification- you've satisifed my curiosity for the day.

I wonder if this is what OP was after.
 
Old 06-10-2013, 05:55 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
theoretically yes, but probably exquisitely difficult as determining which instance of apache to use is the real question

i second the virtual hosting thing as apache can serve several domains/sub-domains off one instance of apache, this can be done by either IP based virtual hosting or name based virtual hosting.

if you need IP based virtual hosting, the server's network card can be configured to have several virtual interfaces each with a unique IP address
 
Old 06-11-2013, 09:19 AM   #7
eklavya
Member
 
Registered: Mar 2013
Posts: 633

Rep: Reputation: 141Reputation: 141
If you are talking about running multiple instances, take a look at this.
http://wiki.apache.org/httpd/Running...pacheInstances

But if you want two apache on same port and use them alternate. you can install lampp.
When lampp's apache is started, apache2 or httpd should be stopped and vice-versa because both are sharing same port 80.
 
  


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
how can i configure apache server shariq_majeed Linux - Newbie 9 01-24-2011 08:40 PM
how to configure apache server srini406 Linux - Newbie 1 02-07-2010 08:34 PM
Configure apache on server rahulnayak Linux - Server 2 01-19-2010 09:27 AM
how to configure apache server? opsagar123 Linux - Newbie 2 05-20-2009 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:55 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