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.

[B]F.A.Q. Whow to access Awstats From Outside the control panel[/B]

Discussion in 'General Discussion' started by SauronZ, Jul 3, 2003.

  1. SauronZ

    SauronZ Member
    PartnerNOC

    Joined:
    May 29, 2003
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Accessing Awstats from outside the control panel is easy.

    Step 1.

    Download awstats from http://awstats.sourceforge.net

    Step 2.

    Uncompress awstats-5.6.tgz

    Step 3.

    Copy the contents of the uncompressed cgi-bin folder from your hard drive to the user cgi-bin directory (this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins sub-directories).

    Step 4.

    If necessary (should not with most Perl interpreter), edit the first (top-most) line of awstats.pl file that is
    #!/usr/bin/perl
    to reflect the path were your Perl interpreter is installed. Default value works for most of Unix OS, but it also might be
    #!/usr/local/bin/perl

    Step 5.

    Move AWStats icon sub-directories and its content into a directory readable by your web server, for example /home/users/public_html/icons

    Step 6.

    Copy awstats.model.conf file into a new file named awstats.myvirtualhostname.conf. This new file must be stored in
    /home/user/public_html/cgi-bin.

    Step 7.

    Edit this new config file with your own setup :
    - Change LogFile value with full path of your web server log file
    (The path is:
    LogFile="/usr/local/apache/domlogs/domain.com").

    - Check if LogFormat has the value "1" (it means "NCSA apache combined/ELF/XLF log format").

    - Change DirIcons parameter to reflect relative path of icon directory.
    (DirIcons="/icons")

    - Edit SiteDomain parameter with the main domain name or the intranet web server name used to reach the web site to analyze (Example: www.mydomain.com).

    IMPORTANT!
    - Change DirData to use the same Statics file than Cpanel Awstats and do not loose any entry.
    (DirData="/home/user/tmp/awstats/")

    Step 8.

    Access AwStats by the URL:

    www.domain.com/cgi-bin/awstats.pl?config=domain.com

    That's all!!!


    The AwStats will refresh the Statics every 24 Hours.

    ---------------------------------------
    Yannick Arrimadas Bot
    info@sauronz.com
    www.sauronz.com
    ---------------------------------------:D

    cPanel.net Support Ticket Number:
     
  2. dennis

    dennis Well-Known Member

    Joined:
    Apr 22, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Singapore
  3. sceilig

    sceilig Member

    Joined:
    Oct 1, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    awstats outside of cpanel

    I have tried to use josheli's php script for viewing awstats outside of cpanel (entering the domainname, username and password in the php script which does a passthru of awstats.pl with those details.)
    http://www.josheli.com/vox/view_source.php?awstats.php

    It sortof half works - the awstats left frame loads successfully but the default right frame takes a long time to load and most times it times out. However when I click on some of the specific stats links from the left frame like "search keywords" the right frame loads fine with the correct stats. I cant understand why this is happening?.

    When I try to load the default right frame as this:
    domainname.com/awstats.php?config=domainname.com&framename=mainright
    it times out(the source code shows it tried to download some of the html but got as far as the stylesheet code in the <head>, or if I refresh, then after the 4th or 5th time it does load some stats (a couple of tables).
    BUT if I tack on a stat variable like for search keywords, the page loads fine
    domainname.com/awstats.php?config=domainname.com&framename=mainright&output=keyword

    Anyone have any ideas? When I access this domains awstats from within Cpanel, they load straight away without any delay. The awstats.php script doesnt do much more than call the awstats.pl script with the username and password.
     

Share This Page