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.

---Hit counters?---

Discussion in 'General Discussion' started by adamsblueguitar, May 7, 2004.

  1. adamsblueguitar

    adamsblueguitar Registered

    Joined:
    May 7, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    In my webstats for cpanel, such as awstats, it says I have over 18,000 hits. But I've had on my page a stupid "jellycounter" that I downloaded for free from jellycounters.com. The jellycounter says I only have about 1,700 hits.

    Which one is right?

    Is there any way to have my own real counter via the stats in cpanel?

    Is there any code for doing that?
     
  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
    Those 18,000 hits include accessing to everything, including:

    html files
    image files
    CSS files
    JavaScript files
    etc.

    The page counter only refers to page views.
     
  3. PenguinMan98

    PenguinMan98 Registered

    Joined:
    Mar 17, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Yes but...

    I would also like to know if it is possible to export the hit counter and site traffic stats out of the cpanel into a page on my site backend. That way I can give my employees access to those stats without giving them cpanel access.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Open Awstats, go to (in IE) File > Save As > give it a short name like stats.html > Choose "Webpage Complete" from the 'Save As Type' drop down list on the window that came up. Save to a folder on your desk. Upload to where ever you like.

    Not live stats, but works. ;)
     
  5. PenguinMan98

    PenguinMan98 Registered

    Joined:
    Mar 17, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Awww

    That's cool but I need real-time.
     
  6. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Here are some instructions I've used in the past to enable AWStats outside cPanel:

    1. Download and unzip the latest stable AWStats .zip file from http://awstats.sourceforge.net/#DOWNLOAD

    2. Open the unzipped folder. Find the file located in the 'cgi-bin' folder under 'wwwroot' called "awstats.model.conf" and rename it "awstats.yourdomain.com.conf" - where 'yourdomain.com' is your domain name.

    3. Edit "awstats.yourdomain.com.conf" as follows. Note: In these examples, 'yourdomain.com' is your domain name, and 'username' is your username

    * Change LogFile value: LogFile="/usr/local/apache/domlogs/yourdomain.com"

    * Change SiteDomain value: SiteDomain="www.yourdomain.com"

    * Change DirData value: DirData="/home/username/tmp/awstats/"

    4. IMPORTANT: Make sure your FTP client is set to upload in 'ASCII' mode.
    Upload the entire contents of the 'cgi-bin' folder from your hard drive into the 'cgi-bin' directory on the server.

    5. Change the permissions on the "awstats.pl" file in the server's cgi-bin directory to "755".

    6. IMPORTANT: Make sure your FTP client is set to upload in 'Binary' mode.
    Upload the 'icon' folder from your hard drive to /home/username/public_html/icon

    That's it - it's actually quicker and easier than it seems at first glance :)
     
Loading...

Share This Page