Results 1 to 14 of 14
Thread: 2 apache daemons
-
08-30-2007, 10:02 PM #1Web Hosting Guru
- Join Date
- May 2006
- Posts
- 312
2 apache daemons
I am reading a topic that saying we can compile 2 apache daemons on the same server, one serves for static files, one serves for dynamic contents. But there is no where I can find out how to do.
Is there anyone here can help?
tks,Traditional music traveling
-
08-30-2007, 11:27 PM #2WHT Addict
- Join Date
- May 2007
- Location
- Ukraine
- Posts
- 161
yes, you can run two apache daemons on the same server.
apache compiling process is well described on httpd.apache.org, as well as on Google .
Two key moments to put your attention:
- they must be installed into different directories on server.
- they must be configured to listen to different ports (say 1st one to 80 port, 2nd one to 8080 port).
On my CentOS server, i installed one from centos repository using yum, second apache was compiled.
What that topic says about the goal of running two apache instances on the single server for different types of content ???
-
08-30-2007, 11:42 PM #3Web Hosting Evangelist
- Join Date
- Apr 2006
- Posts
- 516
mind to share what are the benefits?
-
08-30-2007, 11:56 PM #4WHT Addict
- Join Date
- Aug 2007
- Location
- Minneapolis
- Posts
- 111
The dynamic server doesn't get bogged down by fetching static files such as images which can slow down the server under a load. There are light weight web servers that are "optimized" to serve static content well.
The benefit is more efficient use of resources however I haven't been convinced if that's the case when both servers are running on the same machine.
-
08-31-2007, 12:10 AM #5Junior Guru
- Join Date
- May 2007
- Location
- Saint Louis
- Posts
- 194
They could both be configured to listen on port 80 if each instance had its own ip.
eth0:80 for apache1
eth1:80 for apache2
-
08-31-2007, 02:36 AM #6Web Hosting Master
- Join Date
- Apr 2002
- Location
- Auckland - New Zealand
- Posts
- 1,575
You can run 2 apache servers on 1 interface, using different IP addresses, both using port 80 or whatever.
Listen xxx.xxx.xxx.xxx:80
Is what you need in each apache servers conf file, to bind the server to only that IP.Last edited by StevenG; 08-31-2007 at 02:41 AM.
-
08-31-2007, 03:43 AM #7Web Hosting Evangelist
- Join Date
- Jun 2006
- Location
- Cluj Napoca
- Posts
- 469
You can also run just one apache server twice. You will need 2 ip's but you will not need to compile 2 apache servers, you will use the one you have installed. Of course, you can set one to load php and other extensions and the second apache to not load anything. This is pro cPanel in my opinion as you will use the same configuration file. I did this in order to have mod_php4 and mod_php5 on the same server with cPanel.
-
08-31-2007, 04:40 AM #8Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
You may install lighthttpd as a second webserver and use that to server static pages such as images, docs etc. It will be more efficient.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
08-31-2007, 04:44 AM #9Web Hosting Evangelist
- Join Date
- Jun 2006
- Location
- Cluj Napoca
- Posts
- 469
-
08-31-2007, 05:03 AM #10Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
From his signature, I think he has DA control panel
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
08-31-2007, 05:05 AM #11Web Hosting Evangelist
- Join Date
- Jun 2006
- Location
- Cluj Napoca
- Posts
- 469
-
08-31-2007, 01:59 PM #12Newbie
- Join Date
- Aug 2007
- Posts
- 22
[COLOR=Red]yes You can run 2 apapche in same server.But You should Specify the port in .cnf file.Eg.If you have default appache then also if you want you can install LAMP which have apache.
<<Signature to be setup in your profile>>Last edited by anon-e-mouse; 08-31-2007 at 05:31 PM.
-
08-31-2007, 02:42 PM #13Web Hosting Evangelist
- Join Date
- Jun 2006
- Location
- Cluj Napoca
- Posts
- 469
-
08-31-2007, 03:38 PM #14Newbie
- Join Date
- Aug 2007
- Posts
- 22
Yes through linux (shell Command )I am talking.