Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 28 of 28
  1. #16
    Member
    Join Date
    Feb 2004
    Posts
    26

    Default

    Last time I checked, no. The dir was still created with the wrong permissions.

    This was about 2 weeks ago.

  2. #17
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2004
    Location
    Ann Arbor, MI
    Posts
    22
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Script is still broken... EXAMPLE USAGE INCLUDED!

    FYI to anybody looking for this. The script still seems broken. Would suggest adding manually ... for example within the virthost you want to put in:

    <IfModule mod_bandwidth.c>
    BandWidthModule On
    <Directory "/home/xxxxxx/public_html">
    # BandWidth all 30720
    LargeFileLimit 1024 61440
    </Directory>
    </IfModule>

    http://www.cohprog.com/v3/bandwidth/doc-en.html

    For all the options...

    LargeFileLimit is a good one to keep people from sucking all the bandwidth when people are downloading huge files.... I DID notice though the LargeFileLimit bandwidth rate seems to be only about half of what you put there. I had to compensate to get it to work right. Not sure why... pipe in if you know!

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

    Default

    Hi bmuthig,

    We have had exactly the same problems with the bandwidth acting strangely. Although we compensated to begin with, you will find if you start two downloads going at the same time, it will complete throw that theory right out of the window.

    We added the “BandWidthPulse” command, set to 1 second, this seems to have solved the problem.

    <IfModule mod_bandwidth.c>
    <Directory /home/xxxxxxxx/public_html>
    BandWidthModule On
    BandWidth all 30720
    BandWidthPulse 1000000
    </Directory>
    </IfModule>

    Bye!

  4. #19
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default

    nope, not yet.

  5. #20
    Member
    Join Date
    Jul 2003
    Posts
    44

    Default

    I am having the same issue and will try the temp fix tonight. Thanks

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

    Default

    Hi All,

    One other thing I have noticed, is that it doesn’t restrict the bandwidth for PHP files? Has anyone come up with a solution for this?

    I first noticed this when I restricted a popular web-sites bandwidth, the entire web-site slowed down, which is in .htm. However the forums were still running as fast as before, using PHPBB.

    The only place I can find reference to this is:
    http://www.issociate.de/board/post/1...PHP_files.html

    However no clear solution to the problem.

    Regards
    Kevin

  7. #22
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Quote Originally Posted by kalnet4u
    Hi All,

    ...
    I first noticed this when I restricted a popular web-sites bandwidth, the entire web-site slowed down, which is in .htm. However the forums were still running as fast as before, using PHPBB.
    ...
    Regards
    Kevin
    Do you have the gzip option enabled in your phpBB ? ( might be on by default )
    Beau Henderson

  8. #23
    Member
    Join Date
    Feb 2004
    Posts
    14

    Default

    Quote Originally Posted by hfweb
    how do i limit maximum sconnections of an ip with this, these download managers are killing me!
    I found mod_ipdrop perfect for limitting connections works wonders. I now don't have DL managers causing problems

    http://miksir.pp.ru/?r=65

  9. #24
    Member
    Join Date
    Oct 2003
    Location
    NYC baby
    Posts
    11

    Default

    I did a temporary fix to basic setbwlimit script, it might be useful if you just want simple bandwidth limit set quickly without editing httpd.conf

    opens /scripts/setbwlimit in your favourite editor

    find a line

    PHP Code:
    print HC "\n<IfModule mod_bandwidth.c>\n" 
    right after it add a following line

    PHP Code:
     "\nBandWidthModule On\n" 
    exit+save

    will save you some work if you use it regularly, as always when doing such modifications you should backup the files you are editing and proceed at your own risk, yadda yadda.
    www.rocket404.com - web development the original way
    extended portfolio - www.spekt.org

  10. #25
    cPanel Partner NOC cPanel Partner NOC Badge anton_latvia's Avatar
    Join Date
    May 2004
    Posts
    277

    Default

    Quote Originally Posted by GufyMike
    I found mod_ipdrop perfect for limitting connections works wonders. I now don't have DL managers causing problems

    http://miksir.pp.ru/?r=65
    GufyMike, so to make it work you have to compile apache manually, I mean not through /scripts/easyapache, right? Or may be you know some way how to stick it inside easyapache ?
    * http://www.aleksandrov.eu/ - just a simple personal homepage.

  11. #26
    Member
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    63

    Default

    Pretty much any module can be built with apxs if you know what you're doing. Provided of course that apache was already compiled with support for DSO's.

  12. #27
    Member
    Join Date
    Nov 2003
    Location
    Panama City, FL
    Posts
    144

    Default

    So I just installed this module...

    It seems like the /scripts/setbwlimit should add "BandWidthModule On" right above the "BandWidth all [n]" line in the VirtualHost - at least, that's what got it working for me...

    Also, the module was owned as root, per the beginning of this thread -- I don't know whether or not that was a problem, because what got it working for me was the addition of the line I mention above...

    To clarify for any others that see this before cPanel fixes it, here's the IfModule before and after my correction:

    Code:
    <IfModule mod_bandwidth.c>
    <Directory "/home/[user]/public_html">
      BandWidth all [number]
    </Directory>
    </IfModule>
    That's how cPanel set it - here's what worked:

    Code:
    <IfModule mod_bandwidth.c>
    <Directory "/home/[user]/public_html">
      BandWidthModule On
      BandWidth all [number]
    </Directory>
    </IfModule>
    Not a critique, just hoping this helps someone else.

  13. #28
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    OK, spent 1 hour to study this suck issue, found:

    1. You can install this module from WHM addon.
    2. You need to do the chown nobody:nobody -R /var/cpanel/apachebw thing.
    3. You need to do the turn it on thing.
    4. If u really need to apply this module to your clients, u must read :
    http://www.cohprog.com/v3/bandwidth/doc-en.html
    and
    http://www.crucialp.com/resources/tu...on-control.php

    Hope these help someone like me.

Similar Threads & Tags
Similar threads

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