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 has 1 in number of visits column

Discussion in 'General Discussion' started by screege, Mar 19, 2014.

  1. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Hey folks.

    I have an odd one that appears to have occurred in one particularly busy web site only.

    Awstats suddenly has "1" in Number of visits column (Days of the Month view). See attached.

    Anyone else seen this happen before?
     

    Attached Files:

  2. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Also none of the stats are working can anyone help?
     
  3. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    For anyone having this issue turned out it was nginx , now I must figure out how to correct it.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Check to see if your system uses a custom vhost.local template in the /var/cpanel/templates/apache2 directory. The installation of Nginx may have commented out CustomLog entries in this template file which changes the way Apache VirtualHosts are written. I have seen some users have success with uncommenting the "CustomLog" entries in the vhost.local template and then rebuilding the Apache configuration file via /scripts/rebuildhttpdconf.

    Thank you.
     
  5. screege

    screege Well-Known Member

    Joined:
    Aug 11, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    I have the following under vhost.default

    [% IF logstyle == 'combined' -%]
    [%- IF !enable_piped_logs || !supported.mod_log_config -%]
    CustomLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %] combined
    [%- END %]
    [% ELSE %]
    TransferLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %]
    [% END -%]
    [% IF supported.mod_log_config && supported.mod_logio && !enable_piped_logs -%]
    CustomLog [% serverroot %]/domlogs/[% wildcard_safe(vhost.log_servername) %]-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    [% END -%]

    Regards
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page