Results 1 to 10 of 10

Thread: Give a public URL for AWStats ?

  1. #1
    silexian is offline New Bee
    Join Date
    Jul 2007
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Give a public URL for AWStats ?

    Hello

    I manage several websites (domains) and I would like to give access to an AWStats page to the owner of a website.
    But I don't want him to access the CPanel admin pages.

    How is it possible to limit his access to AWStats pages ?
    -> adding AWStats script in his www ? (it would competite with the CPanel AWStats)
    -> having a ww.domain.com:2082 or another port access ? And how

    regards
    Silexian

  2. #2
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,439
    WHB Points this Month
    0.00
    WHB Points
    405.00
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    You could write a PHP script to enable viewing of AWstats outside of cPanel. Several people at my former host used this method.

  3. #3
    silexian is offline New Bee
    Join Date
    Jul 2007
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Alan,

    Could I install AWstats in www and point in the configuration to the AWstats of CPanel files ?
    If so, do you have some clues ?

    Will look to Cpanel official website, there MUST be some informations !

    Regards

  4. #4
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,439
    WHB Points this Month
    0.00
    WHB Points
    405.00
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    The script I mentioned enables you to specify the cPanel login in the PHP script. You then give people the URL of the script, which will then display AWstats without letting them access the rest of cPanel. It does not require a separate installation of AWstats.

  5. #5
    silexian is offline New Bee
    Join Date
    Jul 2007
    Posts
    8
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    here are some infos from the FAQ of CPanel :

    Question: View webalizer stats without login to cpanel
    Answer:
    cd /home/username/www
    ln -s ../tmp/webalizer stats
    chown username.username stats
    cd ../tmp
    chmod 755 ./
    chmod 755 ./webalizer
    ----------------
    will allow domain.com/stats/ for viewing stats without logging in to cpanel

    Question: How to access Awstats From Outside the control panel
    Answer:
    The following is a user submitted FAQ, while it should work fine, it can not be supported by Cpanel Support.
    ================================================== ============

    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 be needed with most setups), 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:

    http://www.domain.com/cgi-bin/awstat...fig=domain.com

    That's all!!!

    The AwStats will refresh the Statics every 24 Hours.

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

  6. #6
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,439
    WHB Points this Month
    0.00
    WHB Points
    405.00
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    You could do that. As I said, by using a script you can allow access to the existing AWstats installation, without having to install a separate AWstats package.

  7. #7
    Tony's Avatar
    Tony is offline Bad Influence
    Join Date
    Apr 2007
    Location
    West Virginia Blue Ridge
    Posts
    654
    Servers
    SS3
    WHB Points this Month
    0.00
    WHB Points
    200.00
    Thanks
    2
    Thanked 10 Times in 10 Posts

    Default

    FWIW, I finally gave up trying to get this to work on a shared server and instead use Google Analytics.

  8. #8
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,439
    WHB Points this Month
    0.00
    WHB Points
    405.00
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    The script I mentioned does work on cPanel hosting, as I have tried it at another host. So, it can be done.

  9. #9
    Saf M Guest

    Default

    I personally prefer Google Analytics over all stats programs. It is probably the best available stat program and is free also.

  10. #10
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,439
    WHB Points this Month
    0.00
    WHB Points
    405.00
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    The drawbacks are: Google Analytics requires javascript code be inserted into each page of your web site; Google Analytics tracking runs from client side (javascript), rather than server side; and Google Analytics is known to miss some visits, possibly due to vagaries in how javascript runs on various client computers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •