Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    15

    Default Webalizer how to exclude files types ??

    HI

    I would like set Webalizer for exclude some files types to be displayed. I would like also increase TOP sites display and more...

    I have make a lot search and I have found some very old forum telling is possible to create a custom "webalizer.conf" file and put into root folder...or into /tmp/webalizer... I have try both solutions but no one working...

    It seem Cpanel change often webalizer location and ability/method to make custom display...

    So anybody know how to do ?

    thanks for any suggestions

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Placing a webalizer.conf file in /home/username/tmp/webalizer/ should work. However, be sure to chattr it as follows:

    Code:
    chattr +ai /home/username/tmp/webalizer.conf
    Where username represents the user's cPanel username.

  3. #3
    Member
    Join Date
    Jan 2009
    Posts
    15

    Default

    Thanks for reply...

    I have put that file (in fact the default sample file provided in webalizer website available here: ftp://ftp.mrunix.net/pub/webalizer/sample.conf ) in webalizer folder but no change...

    I have also apply the chattr command but no change too... I see "chattr" is a command for make a file immutable so is not possible after to delete the file:

    chattr - Wikipedia, the free encyclopedia

    Another question: The conf file must be uploaded by ftp as root or as user ? Any difference ? In fact I have try both without success... I have try also to put conf file inside /home/username/temp/ and inside /home/username/temp/webalizer but no change.... Your previous answer are not totally clear...I must put the file in /temp/ or in /temp/webalizer/ ??

    Maybe I must wait 24h when webalizer make new stats and modification will take effect ???

    Other question: My first goal is to hide some files...It is correct to put only the follow data inside file? :

    HideURL *.gif
    HideURL *.GIF
    HideURL *.jpg
    HideURL *.JPG
    HideURL *.png
    HideURL *.PNG
    HideURL *.ra
    HideURL *.css
    HideURL *.CSS
    HideURL *.JS
    HideURL *.js
    HideURL *.SWF
    HideURL *.swf

    Last question: It is possible to set webalizer with a conf file for the whole software and not only per each user ? In fact I would like hide the above files type for all my users....

    thanks

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dotcom22 View Post
    Thanks for reply...

    I have put that file (in fact the default sample file provided in webalizer website available here: ftp://ftp.mrunix.net/pub/webalizer/sample.conf ) in webalizer folder but no change...

    I have also apply the chattr command but no change too... I see "chattr" is a command for make a file immutable so is not possible after to delete the file:

    chattr - Wikipedia, the free encyclopedia

    Another question: The conf file must be uploaded by ftp as root or as user ? Any difference ? In fact I have try both without success... I have try also to put conf file inside /home/username/temp/ and inside /home/username/temp/webalizer but no change.... Your previous answer are not totally clear...I must put the file in /temp/ or in /temp/webalizer/ ??

    Maybe I must wait 24h when webalizer make new stats and modification will take effect ???

    Other question: My first goal is to hide some files...It is correct to put only the follow data inside file? :

    HideURL *.gif
    HideURL *.GIF
    HideURL *.jpg
    HideURL *.JPG
    HideURL *.png
    HideURL *.PNG
    HideURL *.ra
    HideURL *.css
    HideURL *.CSS
    HideURL *.JS
    HideURL *.js
    HideURL *.SWF
    HideURL *.swf

    Last question: It is possible to set webalizer with a conf file for the whole software and not only per each user ? In fact I would like hide the above files type for all my users....

    thanks
    The webalizer.conf file must go in /home/username/tmp/webalizer/ where username represents the cPanel user's username. It does not go in /home/username/tmp/ nor any directory with "temp" in its path name.

    If you still experience issues with webalizer.conf after the next set of stats are generated, please let our technical analysts assist you: http://tickets.cPanel.net/submit

  5. #5
    Member
    Join Date
    Jan 2009
    Posts
    15

    Default

    Ok thanks it work now...

    Anyway I would like set some param but for the whole Webalizer for avoid the annoying manual process to upload the conf file on each account...

    It is possible to to that ? I have find some post telling is possible to do by putting that file inside etc/webalizer but I don't have any webalizer folder inside etc...Some user say Webalizer and Cpanel are build together and are not separate...

    any suggestion much appreciate....

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dotcom22 View Post
    Ok thanks it work now...

    Anyway I would like set some param but for the whole Webalizer for avoid the annoying manual process to upload the conf file on each account...

    It is possible to to that ? I have find some post telling is possible to do by putting that file inside etc/webalizer but I don't have any webalizer folder inside etc...Some user say Webalizer and Cpanel are build together and are not separate...

    any suggestion much appreciate....
    At this time, we do not have a global webalizer configuration file in a cPanel/WHM environment.

  7. #7
    Member
    Join Date
    Jan 2009
    Posts
    15

    Unhappy

    Too bad.... In fact I have see on some other forum is possible to set a webalizer.conf file and put it in ETC folder....and all param can be apply to all account on server...

    Do you plan to add this feature in near future ?? I know webalizer can be a obsolete software and maybe you don't plan to change anything but the fact is you propose by default this software with Cpanel so it can be great if we can use it with his full power... Without making some specific configuration personally I think the stats provided are not very useful... I don't pretend to get precise stats like Google analytics or other but Webalizer can be a simple and light solution for provide basic stats...

    Typically using some value permitting to hide some files, extensions, url, localhost and more will increase the count ans the sens of stats...

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dotcom22 View Post
    Too bad.... In fact I have see on some other forum is possible to set a webalizer.conf file and put it in ETC folder....and all param can be apply to all account on server...

    Do you plan to add this feature in near future ?? I know webalizer can be a obsolete software and maybe you don't plan to change anything but the fact is you propose by default this software with Cpanel so it can be great if we can use it with his full power... Without making some specific configuration personally I think the stats provided are not very useful... I don't pretend to get precise stats like Google analytics or other but Webalizer can be a simple and light solution for provide basic stats...

    Typically using some value permitting to hide some files, extensions, url, localhost and more will increase the count ans the sens of stats...
    If you feel this functionality should be added, I recommend submitting a feature request at: cPanel Bugzilla Main Page

    I am not aware of any plans to add global webalizer.conf capability to cPanel/WHM.

  9. #9
    Member
    Join Date
    Feb 2007
    Location
    Central California, USA
    Posts
    5

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Placing a webalizer.conf file in /home/username/tmp/webalizer/ should work. However, be sure to chattr it as follows:

    Code:
    chattr +ai /home/username/tmp/webalizer/webalizer.conf
    chattr requires root access which isn't available with reseller accounts. Assuming no root access, is there an alternate way of having webalizer recognize a user's conf file?

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by woodp5 View Post
    chattr requires root access which isn't available with reseller accounts. Assuming no root access, is there an alternate way of having webalizer recognize a user's conf file?
    Unfortunately, there is no alternative method. You will need to have your hosting company do the chattr for you.

  11. #11
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by woodp5 View Post
    chattr requires root access which isn't available with reseller accounts. Assuming no root access, is there an alternate way of having webalizer recognize a user's conf file?
    Regarding the former item, it should be noted that chattr also
    is not available on most VPS server accounts either even with root
    access to the VPS account environment. It's one of the common
    great many limitations that differ VPS servers from real dedicated servers
    and a side trivia note for you.

    Regarding your latter item, it's trivial to have webalizer read in the user
    config files from the user's own /etc or for consistency /tmp folders
    but then root access would again be needed for the initial setup so
    you are again in a difficult position if you aren't the server administrator.

    (Side FYI: Might want to look at AwStats as it's a much better stats program)

Similar Threads & Tags
Similar threads

  1. Filed with Developers Exclude files from backup based on a defined maximum size threshold [Case 50767]
    By AlexAT in forum Feature Requests for cPanel/WHM
    Replies: 9
    Last Post: 10-03-2011, 12:14 PM
  2. Exclude dir on tar files
    By cesarlwh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-17-2009, 06:37 AM
  3. Certain types of zip files in file manager (X)
    By SMG in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-10-2008, 11:13 AM
  4. Exclude mp3 files from backups?
    By drose25 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-21-2006, 03:05 PM
  5. Where are the Webalizer files?
    By wscreate in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-24-2001, 02:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube