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.

domlogs content combined

Discussion in 'General Discussion' started by msaraya, Jun 4, 2010.

  1. msaraya

    msaraya Registered

    Joined:
    Jun 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hello,
    Aspects of a strange problem where each files in domlogs contain only one word "combined" in other words, whenever the pressure of them on a page written a new line contains the word combined
    #cat /usr/local/apache/domlogs/domain.tld
    combined
    combined
    combined
    combined
    combined
    combined
    combined
    combined
    combined
    combined
    combined

    i have update cpanel
    /scripts/upcp --force

    rebuild apache
    rebuild httpd.conf

    but still all domlogs just have this word "combined"

    any help about this problem
     
  2. mhmjr

    mhmjr Member

    Joined:
    Dec 4, 2007
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Sounds like your http.conf LogFormat is not correct. 'combined' is a format for the apache logs. In the httpd.conf, my LogFormat directive looks like this:

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

    I suspected from what you described that this line was missing a closing " so I edited the above line to remove the final " to look like this:

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" combined

    (same syntax, just missing a final double quote ")

    I then restarted apache and tailed one of my domains domlogs and accessed the site. My logs for that access simply said: "combined" twice for each time I accessed it. I put the closing quote back in, restarted apache, and my domlogs are back to normal.

    --
    mhmjr
     
Loading...

Share This Page