Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Meaningful custom statistics with Webalizer

Discussion in 'General Discussion' started by Nahoo, Sep 10, 2005.

  1. Nahoo

    Nahoo Member

    Oct 7, 2004
    Likes Received:
    Trophy Points:
    After alot of irritation with the way the Weblizer statistics are hidden by inappropriate configurations, I have Webalizer working separated from cPanel.

    If you need custom Webalizer statistics for a major website, here are the steps you need to take to get delicious stats...

    1. Install Webalizer

    You can download a copy from:
    I suggest going to /tmp and using wget to collect the file.

    Extract the tarball and install as follows:

    tar -zxvf webalizer-2.01-10-src.tar.Z (or similar)
    cd webalizer-2.01-10
    sh configure
    make install

    2. Create a folder in your webroot, ready for your statistic pages.

    Here, I am using: /home/username/public_html/stats/
    I would recommend password protecting this directory (use the password directory tool in cPanel)

    3. Create a nice Webalizer configuration file

    I suggest uploading a file called webalizer.conf to your user's root (e.g. /home/username/). You can also use pico or vi to edit the file on the server.

    Look at the Webalizer website for conf file details. I would have something like this for a start...

    # Stats
    LogFile         /usr/local/apache/domlogs/
    OutputDir       /home/username/public_html/stats
    HideSite        *
    HideReferrer    Direct Request
    HideReferrer    localhost
    LogType         clf
    HistoryName     webalizer.hist
    Incremental     yes
    IncrementalName webalizer.current
    ReportTitle     Statistics for
    HTMLExtension   html
    PageType        htm*
    PageType        cgi
    PageType        html
    PageType        shtml
    PageType        php
    PageType        pl
    PageType        php
    AllSites        yes
    AllURLs         yes
    AllReferrers    yes
    AllAgents       yes
    AllSearchStr    yes
    AllUsers        yes
    TimeMe          yes
    HideURL         *.gif
    HideURL         *.GIF
    HideURL         *.jpg
    HideURL         *.JPG
    HideURL         *.png
    HideURL         *.PNG
    HideURL         *.ra
    HideURL         *.css
    4. Make it happen

    Create a new CRON job using the commands in SSH:
    crontab -e

    02 4 * * * /usr/local/bin/webalizer -c /home/username/webalizer.conf

    I would recommend giving this a quick test now (just like CRON would do later) by running the command yourself:

    /usr/local/bin/webalizer -c /home/username/webalizer.conf
    (webalizer -c /home/username/webalizer.conf also works here)

    That's it. Now you can delight in your stats by going to: and entering your chosen username and password.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice