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.

access to awstats to visitors

Discussion in 'General Discussion' started by andreaf, Nov 19, 2003.

  1. andreaf

    andreaf Member

    Joined:
    Jun 16, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I'd like to provide awstats for visitor or at least for clinets without their own cpanel to manage their website (I have some cheap hosting plans like these).
    Is it possible to have an address like:
    http://www.mysite.com/awstats
    instead of having to connect each time to cpanel?
    Thanks

    Andrea
     
  2. AnthonyR

    AnthonyR Active Member

    Joined:
    Oct 28, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Yep - you can download and install it in your own webspace...

    Jhttp://www.awstats.net/
     
  3. andreaf

    andreaf Member

    Joined:
    Jun 16, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I'll explain better

    Anthony,
    I didn't explain well what I meant.
    I've some customers but I don't want to give access to cpanel even if I created a cpanel for their site.
    I'm the only one who can access to their cpanel to add e-mail accounts, forwarders...
    I also check their webstats and I would like to allow them to see their stats WITHOUT logging to cpanel.

    Is this possible?
    Can I provide them a web address as:
    http://theirsite/awstats.pl?framename=index&lang=en
    instead of (cpanel mode)
    http://theirsite:2082/awstats.pl?framename=index&lang=en

    I hope I've explained better what I meant!!!:rolleyes:

    Thanks

    Andrea
     
  4. AnthonyR

    AnthonyR Active Member

    Joined:
    Oct 28, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
  5. jcwacky

    jcwacky Member

    Joined:
    Sep 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Is there any way of doing this if you do not have CGI access?
     
  6. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Try this and make sure you set the proper permissions on your awstats dir.

    replace that smilie with : p
     
    #6 jackal, Dec 24, 2003
    Last edited: Dec 24, 2003
  7. jcwacky

    jcwacky Member

    Joined:
    Sep 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thank you soooo much!!! Thats perfect!!!

    Have a great Christmas + New Year!!

    James
     
  8. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    I've tried this, and I've tried something very similar, except you can require authentication of your choosing, found here http://www.totalchoicehosting.com/help/statisticspage.htm but am unable to get it to work. I don't get any errors, just a completely blank page.

    I'm not entirely sure what 'awstats dir' you are referring to when mentioning permissions though. Maybe that's the problem. I have set permissions on /../user/tmp/awstats to 'rwxr xr x'. Is this the one you meant? I am using cPanel 8.5.4-RELEASE 72 and Theme cPanel X v2.2.6.

    The stats are there when I go in via cpanel or directly to the domain.com:2082/awstats.pl?config=domain.com , just nothing is being returned by this script or the other.

    Any thoughts?

    Thanks, v

    Ps. The other script I mentioned is discussed in this thread;
    http://forums.cpanel.net/showthread.php?s=&threadid=16964
     
    #8 verdon, Jan 31, 2004
    Last edited: Jan 31, 2004
  9. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Security hole

    This script (the one by jackal) sends username:password to access awstats, but really it opens the way to cpanel!!!!

    I thinks this is a fail for security.

    Bye.
     
  10. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Hello, I did not ask you to use did I?
     
  11. andreaf

    andreaf Member

    Joined:
    Jun 16, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    latpanel is right!

    I would like to know if it's possible to mask username and password as it would really open the way to cpanel and I don't want anyone to access the cpanel (even the customer).

    Any reply is truly appreciated!

    Andrea
     
  12. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Solution

    I've found a solution in Awstats site.
    1. Put awstats.pl in a access protected directory. Use links for every directory of awstats (lang, lib, plugin, images) to cpanel awstats installation.
    2. In this directory put the config files of every subdomain (I don't know why, but awstats.pl can't read cpanel awstats config files). Or you can make a link (ln -s)
    3. In the config file set:
    AllowAccessFromWebToAuthenticatedUsersOnly=1
    4. In the config files of each subdomain set the name of the allowed users:
    AllowAccessFromWebToFollowingAuthenticatedUsers="username"

    I think I didn't forget anything.

    That's all!
     
    #12 latpanel, Apr 9, 2004
    Last edited: Apr 11, 2004
Loading...

Share This Page