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.

AWStats not running

Discussion in 'General Discussion' started by prankstr25, Sep 2, 2005.

  1. prankstr25

    prankstr25 Member

    Joined:
    Jun 27, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    when I open AWStats for 1 of the websites, there are 0 everywhere, not a single visit is logged. When I tried to run /scripts/runweblogs for that user, here is the output:

    Searching new records from beginning of log file...
    AWStats did not find any valid log lines that match your LogFormat parameter, in
    the 50th first non commented lines read of your log.
    Your log file /usr/local/apache/domlogs/domain.org must have a bad format o
    r LogFormat parameter setup does not match this format.
    Your AWStats LogFormat parameter is:
    1
    This means each line in your web server log file need to have "combined log form
    at" like this:
    111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://
    www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0
    )"
    And this is an example of records AWStats found in your log file (the record num
    ber 50 in your log):
    67.132.43.2 - - [01/Sep/2005:12:56:34 -0400] "GET /images/myphonecom.gif HTTP/1.
    1" 304 -
    Setup ('/home/domain/tmp/awstats/awstats.domain.org.conf' file, web server or
    permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).
    Complete

    Any idea on why this might be happening, and how to fix it? Other domains on the server work perfectly.

    EDIT: I corrected the path to the log file in the AWstats conf file for that domain, but now when I run /scripts/runweblogs, I get this:

    No qualified records found in log (19 corrupted, 0 dropped)
     
    #1 prankstr25, Sep 2, 2005
    Last edited: Sep 2, 2005
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Check the permissions for /home/user/tmp/awstats -- it should be 755
    and all the file within should be 644

    And ownership should be that of user.user
     
  3. prankstr25

    prankstr25 Member

    Joined:
    Jun 27, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    That's what I have..There is only 1 file in the tmp directory, the awstats .conf file...
     
  4. p-root

    p-root Active Member

    Joined:
    Nov 1, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    INDIA
    I have the same problem,I have linux shared hosting server with WHM,from last couple of days our AWSTATS not updating/not working,i have tried with all the option,whenever i just update AWSTATS from user Cpanel it throws error :-

    ================================================== ============================
    AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
    Your log file /usr/local/apache/domlogs/domain.com must have a bad format or LogFormat parameter setup does not match this format.


    Your AWStats LogFormat parameter is: 1
    This means each line in your web server log file need to have "combined log format" like this:
    111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"

    And this is an example of records AWStats found in your log file (the record number 50 in your log):
    118.94.161.217 - - [12/Sep/2010:21:18:04 +0530] "GET /adda/wp-content/uploads/avatars/1/75a71ca2ddfd423e7a9276ff8b6f22dd-bpthumb.jpg HTTP/1.1" 200 1722


    Setup ('/home/user/tmp/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).
    ================================================== =======================

    Permission of /home/user/tmp/awstats is 755 and all files has 644 permission,Please do the needful and let me know how to get rid of this error...
     
  5. MyName

    MyName Registered

    Joined:
    Dec 17, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    just run command this

    /scripts/runlogsnow

    or

    /scripts/runweblogs

    CEMIWIW
     
Loading...

Share This Page