Last time I checked, no. The dir was still created with the wrong permissions.
This was about 2 weeks ago.
Last time I checked, no. The dir was still created with the wrong permissions.
This was about 2 weeks ago.
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!
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!
I am having the same issue and will try the temp fix tonight. Thanks
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
Do you have the gzip option enabled in your phpBB ? ( might be on by default )Originally Posted by kalnet4u
Beau Henderson
I found mod_ipdrop perfect for limitting connections works wonders. I now don't have DL managers causing problemsOriginally Posted by hfweb
http://miksir.pp.ru/?r=65
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
right after it add a following linePHP Code:print HC "\n<IfModule mod_bandwidth.c>\n" .
exit+savePHP Code:"\nBandWidthModule On\n" .
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
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 ?Originally Posted by GufyMike
* http://www.aleksandrov.eu/ - just a simple personal homepage.
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.
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:
That's how cPanel set it - here's what worked:Code:<IfModule mod_bandwidth.c> <Directory "/home/[user]/public_html"> BandWidth all [number] </Directory> </IfModule>
Not a critique, just hoping this helps someone else.Code:<IfModule mod_bandwidth.c> <Directory "/home/[user]/public_html"> BandWidthModule On BandWidth all [number] </Directory> </IfModule>![]()
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.