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.

Webalizer - public view

Discussion in 'General Discussion' started by Arvy, Jul 16, 2008.

  1. Arvy

    Arvy Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    92
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Twitter:
    How can I set Webalizer to be available in a folder like /stats/ without password?

    I tryed edit httpd.conf and insert a line:

    /stats/ /home/user/tmp/webalizer/

    but I get a 403 (denied) error. Any idea?
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you simply wants to point /stats folder to /home/user/tmp/webalizer/ then you can simply create a symbolic link for /home/user/tmp/webalizer/.

    You can use the below command to do it:

    ln -s /home/user/tmp/webalizer/ /stats
     
  3. Arvy

    Arvy Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    92
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Twitter:
    I got the same 403 error:

    cd /home/user/public_html
    ln -s /home/user/tmp/webalizer/ stats

    Works, but I still get an "access denied".

    I think the problem is about user permitions. But I dont understant why, since both folders "public_html" and "tmp/webalizer" the owner is "user".

    Any other ideas?
     
  4. Arvy

    Arvy Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    92
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Found

    Found a solution. Sharing:

    --------------

    CPanel offers you the ability to check your website statistics with a program called webalizer. The problem with this system is that you are required to login via cpanel, and click through 2 diferent subsections in order to access them. This tutorial will guide you on the steps needed to make your webalizer statistics available via www.yoursite.com/stats/ .

    Login to your hosting account via ssh. If you do not have ssh, ask your host to enable it. if they won't enable it, ask them to read this tutorial, and run through these directions yourself.

    Navigate to your public_html directory by running the following command

    cd public_html

    Once there, type the following:

    vi .htaccess

    once that loads, hit your i key, and type the following:

    Options +FollowSymLinks

    Once that is done, hit your Esc (escape) key, and type the following:

    :wq

    This will write to the .htaccess file, and quit.

    Next, run the following command

    ln -s ~/tmp/webalizer stats

    you can replace the "stats" part of that command with name you want to use in order to access your website statistics.

    After that, run the following commands

    chmod 755 ~/tmp
    chmod 755 ~/tmp/webalizer

    now you can access www.yoursite.com/stats/ to access your webalizer statistics.
     
Loading...

Share This Page