Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    cPanelBilly
    Guest

    Default Addon Module: mod_bandwidth

    What is Mod_Bandwidth?
    "Mod_bandwidth" is a module for the Apache webserver that enable the setting of server-wide or per connection bandwidth limits, based on the directory, size of files and remote IP/domain.
    How do I enable it for a domain
    In root shell type: /scripts/setbwlimit then follow the instructions (remember you are setting the limit based on bytes per second so 1024 = 1kb sec and that is to all users)

    Where can I read more about it?
    http://www.cohprog.com/mod_bandwidth.html

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Hi.

    Can this be done from WHM ... perhaps a Feature Request. Long back i had been on WireX Immunix and their control panel had this feature of defining/editing the Bandwidth Limits during Account Setup/Editing Later on.

    If this could be done as a Part of Account Functions, in WHM, it would be good.

    Anup

  3. #3
    cPanelBilly
    Guest

    Default

    That is already being coded.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    350
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelBilly
    That is already being coded.
    Great Idea! Very useful

  5. #5
    Registered User
    Join Date
    Apr 2004
    Posts
    3

    Default

    how do i limit maximum sconnections of an ip with this, these download managers are killing me!

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Quote Originally Posted by hfweb
    how do i limit maximum sconnections of an ip with this, these download managers are killing me!
    See if mod_throttle can be of any help...

    http://www.snert.com/Software/mod_throttle/

    Anup
    Last edited by anup123; 10-10-2004 at 10:49 AM.

  7. #7
    Member
    Join Date
    Jul 2003
    Location
    Plymouth, UK
    Posts
    31

    Default

    I have installed the bandwidth module, which went smoothly. I also went in to SSH and followed the instructions.

    I also, just to make sure everything is ok, restarted apache for good luck and touched wood (yes I am a novice, lol)

    I can see the entries added into httpd.conf, it looks ok? I have tried it on a shared IP domain and also a dedicated IP domain. I have restarted apache several times.

    IT DOES NOT WORK!

    Please can someone tell me what is going wrong.

    Many Thanks
    Kev

  8. #8
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by kalnet4u
    I have installed the bandwidth module, which went smoothly. I also went in to SSH and followed the instructions.

    I also, just to make sure everything is ok, restarted apache for good luck and touched wood (yes I am a novice, lol)

    I can see the entries added into httpd.conf, it looks ok? I have tried it on a shared IP domain and also a dedicated IP domain. I have restarted apache several times.

    IT DOES NOT WORK!

    Please can someone tell me what is going wrong.

    Many Thanks
    Kev
    Please expalin what you mean, We have done test showing it does work internally, but if there is an issue I need a way to replicate it.

  9. #9
    Member
    Join Date
    Jul 2003
    Location
    Plymouth, UK
    Posts
    31

    Default

    Hi,

    I installed it through “Addon Modules” in WHM.

    I received the successful installed messages, telling me to go in to SSH to enable it on domains.

    Went in to SSH, typed in the command. Was requested for the domain name, entered it, then the speed, I typed in 1024, to ensure I would notice a BIG difference.
    Confirmation message saying it had been added.

    Tried the domain, still as fast as before, well over 1k. I tried restarting Apache, still the same result. I also tried it on another domain, however with the same result, absolutely no reduction in speed.

    I looked in HTTPD.CONF, new entries had been entered in for the domains and for the module. I have no idea what I am doing wrong, I have followed the instructions carefully.

    Many thanks for your help.

    Warm Regards
    Kevin

  10. #10
    Member
    Join Date
    Jul 2003
    Location
    Plymouth, UK
    Posts
    31

    Default

    Hi,

    Before I start messing with the system again, could it be that because I have GZip compression installed (through apache Upgrade in WHM), it is somehow disabling its affects?

    Thanks

  11. #11
    Member
    Join Date
    Jul 2003
    Location
    Plymouth, UK
    Posts
    31

    Default

    Hi Everyone,

    Many of you now probably think I am mad, seemingly having a conversation with myself, since CPanel now seem to have gone quiet. However this may not have been in vain, since I have solved the problem.

    chown nobody:nobody -R /var/cpanel/apachebw

    All I needed to do is type the command in above, simple! A permission error!

    I also needed to make a couple of amendments in httpd.conf also, to make it work. The first being the addition of “BandWidthModule On”.

    Also the auto set-up script of bandwidth seems to add the wrong code. It does indeed add some code just before the </virtualhost>, however it doesn’t do anything. Anyway I am manually adding in the restrictions for the time being, only being a couple of accounts, not a huge problem.

    Some of you may find this guide an interesting read too, this is what helped me solve my problem.

    http://www.crucialparadigm.com/resou...on-control.php

    CPanel, if you want an in depth guide to what went wrong, please do not hesitate to e-mail me.

  12. #12
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by kalnet4u
    Hi Everyone,

    Many of you now probably think I am mad, seemingly having a conversation with myself, since CPanel now seem to have gone quiet. However this may not have been in vain, since I have solved the problem.

    chown nobody:nobody -R /var/cpanel/apachebw

    All I needed to do is type the command in above, simple! A permission error!

    I also needed to make a couple of amendments in httpd.conf also, to make it work. The first being the addition of “BandWidthModule On”.

    Also the auto set-up script of bandwidth seems to add the wrong code. It does indeed add some code just before the </virtualhost>, however it doesn’t do anything. Anyway I am manually adding in the restrictions for the time being, only being a couple of accounts, not a huge problem.

    Some of you may find this guide an interesting read too, this is what helped me solve my problem.

    http://www.crucialparadigm.com/resou...on-control.php

    CPanel, if you want an in depth guide to what went wrong, please do not hesitate to e-mail me.
    Thanks for the fix, it is still beta and issues can arrise
    This is actually already in the install script, do you know what the permissions were before?
    btw we were not ignoring you, all development staff had to work on an exploit that was released to the public before released to us.

  13. #13
    Member
    Join Date
    Jul 2003
    Posts
    17

    Default

    Quote Originally Posted by cPanelBilly
    This is actually already in the install script, do you know what the permissions were before?
    Tried installing it an hour ago.
    - The shell script does not add 'BandWidthModule On'
    - The proper directories are added, and referenced in httpd.conf, but have root ownership

    Inserting the mentioned directive per virtual host and setting the ownership of the temp dir to nobody gets things running. You can also just turn it on outside a virtual host and it stays on.
    - Needs a(n easy) method of setting a redirect page when max connections are reached.
    - Easy to work around, from an account holder view, without further apache restrictions

    whm v9.9.3, cp v9.9.6r10, mod_bandwidth addon v2.0.4-0.7

  14. #14
    Member
    Join Date
    Sep 2004
    Posts
    88

    Default

    Billy,

    Here are what my perms were before chowning them as stated above:
    Code:
    drwxr-xr-x    4 root     root         4.0K Sep 27 10:39 apachebw/

  15. #15
    Member
    Join Date
    Nov 2003
    Posts
    521

    Default

    Have these problems been ironed out?

Similar Threads & Tags
Similar threads

  1. Regardng mod_bandwidth Addon
    By Janak in forum cPanel Developers
    Replies: 1
    Last Post: 09-02-2009, 01:04 PM
  2. Addon Module: mod_security
    By cPanelBilly in forum cPanel Developers
    Replies: 325
    Last Post: 10-20-2008, 09:58 AM
  3. Email Module addon?
    By bluealien in forum cPanel Developers
    Replies: 5
    Last Post: 03-21-2008, 07:06 AM
  4. Addon Module: mod_resin
    By cPanelBilly in forum cPanel Developers
    Replies: 37
    Last Post: 09-12-2007, 04:02 PM
  5. Addon Module: updateaddons
    By cpanelnick in forum cPanel Developers
    Replies: 10
    Last Post: 12-07-2004, 04:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube