Results 1 to 14 of 14
  1. #1
    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

  2. #2
    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 ???

  3. #3
    Join Date
    Apr 2006
    Posts
    516
    mind to share what are the benefits?

  4. #4
    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.

  5. #5
    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
    Ken Cox
    ken@*********.com
    VP Of Operations *********.com
    www.*********.com

  6. #6
    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.

  7. #7
    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.
    IntoDNS - Check your DNS health and configuration
    FLEIO - OpenStack billing and control panel for service providers

  8. #8
    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

  9. #9
    Join Date
    Jun 2006
    Location
    Cluj Napoca
    Posts
    469
    Do you use any control panel ?
    IntoDNS - Check your DNS health and configuration
    FLEIO - OpenStack billing and control panel for service providers

  10. #10
    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

  11. #11
    Join Date
    Jun 2006
    Location
    Cluj Napoca
    Posts
    469
    I thought that too but you can never know
    IntoDNS - Check your DNS health and configuration
    FLEIO - OpenStack billing and control panel for service providers

  12. #12
    [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.

  13. #13
    Join Date
    Jun 2006
    Location
    Cluj Napoca
    Posts
    469
    we are talking about linux right ?
    IntoDNS - Check your DNS health and configuration
    FLEIO - OpenStack billing and control panel for service providers

  14. #14
    Yes through linux (shell Command )I am talking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •