The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why specify separate log file for each vhost?

Discussion in 'General Discussion' started by anup123, Jun 9, 2005.

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Why specify a separate logfile for each VirtualHost and not just use a common file and then use split-logfile utility which anyway can separate out each domain logs and put it up in domlogs as www.domain.tld.log? Wouldn't this be better When using a large number of Virtual Hosts, where Apache may run out of available file descriptors (sometimes called file handles) if each Virtual Host specifies different log files.

    TIA
    Anup
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I've run hosting on servers that split logs and it is horrendously bad for server performance as it consume CPU cycles, memory and I/O with abandon. It's much simpler to have them already broken up so that you don't have to go through that horror. If you're running out of inodes you should really be looking at getting a bigger disk or ensuring that user data is stored on a separate disk.
     
Loading...

Share This Page