ispCP - Board - Support
[apache] bandwidth - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [apache] bandwidth (/thread-4583.html)

Pages: 1 2


[apache] bandwidth - oddyutza - 10-01-2008 04:29 AM

i have some users that have exceeded their quota on disk, ex 181MB / 100MB
and alsoo the web bandwidth is exceeded such as 5GB / 1GB .. nothing happens , the website is still functional, and they can also upload files in their account. Also the website is browseable ... any ideeas how can i restrict the website access, and also to keep the files within the limit? tnx


RE: [apache] bandwidth - sci2tech - 10-01-2008 04:50 AM

You need to enable mod_cband. a2enmod cband then restart apache


RE: [apache] bandwidth - victor531 - 10-01-2008 10:53 AM

I have the same problem and after a2enmod cband it showed me :
This module is already enabled!

besides I've restarted apache2 at least 4 times

May I see any logs ?

Any idea ?

Ispcp Rc4
debian4.0 etch
awstats dynamic

Victor


RE: [apache] bandwidth - alecksievici - 10-01-2008 10:59 AM

(10-01-2008 10:53 AM)victor531 Wrote:  I have the same problem and after a2enmod cband it showed me :
This module is already enabled!

besides I've restarted apache2 at least 4 times

May I see any logs ?

Any idea ?

Ispcp Rc4
debian4.0 etch
awstats dynamic

Victor

the quota problem or the bandwith problem?
if it's the quota take a look here: http://www.isp-control.net/forum/showthread.php?tid=3462&pid=36638#pid36638


RE: [apache] bandwidth - oddyutza - 10-01-2008 05:43 PM

both...


RE: [apache] bandwidth - victor531 - 10-02-2008 11:43 AM

(10-01-2008 05:43 PM)oddyutza Wrote:  both...

me too, and I've checked my /etc/proftpd/modules.conf
(LoadModule mod_quotatab.c
LoadModule mod_quotatab_sql.c)
and /etc/proftpd/proftpd.conf ,
( <IfModule mod_quotatab.c> )
both of them showed me the correct, but I can still upload files.

With the bandwith it's the same, some of my domain are still available with the 200% of their BW used.
When I try a2enmod cband it shows me :
This module is already enabled!

Where can I find the mistake ?


Victor

Ispcp Rc4
debian Etch


RE: [apache] bandwidth - sci2tech - 10-03-2008 01:15 AM

How to test qouta :
You need am user and his password the use telnet:
Quote:telnet domain.tld 21
Trying ip...
Connected to domain.tld.
Escape character is '^]'.
220 ProFTPD 1.3.1 Server (eu.bogus) [ip]
USER user@domain.tld
331 Password required for user@domain.tld
PASS yourpassword
230 User user@domain.tld logged in
SITE QUOTA
200-The current quota for this session are [current/limit]:
200-Name: domain.tld
200-Quota Type: Group
200-Per Session: False
200-Limit Type: Hard
200- Uploaded Mb: 11.04/10.00
200- Downloaded Mb: unlimited
200- Transferred Mb: unlimited
200- Uploaded files: unlimited
200- Downloaded files: unlimited
200- Transferred files: unlimited
200 Please contact root@eu.bogus if these entries are inaccurate
QUIT
221 Goodbye.
Connection closed by foreign host.
With bold you have commands that you must enter. Please put here output.


RE: [apache] bandwidth - victor531 - 10-03-2008 01:15 AM

u..uups ! my quota works .... sorry

But my BW ......stil exceeded


Victor

Ispcp Rc4
debian Etch
[/quote]


RE: [apache] bandwidth - sci2tech - 10-03-2008 01:31 AM

Now for cband:
Quote:cat >> /etc/apache2/sites-available/cband.conf<<eof
<Location /cband-status>
SetHandler cband-status
</Location>
<Location /cband-status-me>
SetHandler cband-status-me
</Location>
eof
a2ensite cband.conf
/etc/init.d/apache2 reload
Then use http://domain.tld/cband-status to see status for all domains or http://domain.tld/cband-status-me for domain.tld. Be sure that not everybody can reach cband-status because they can reset already registered traffic.


RE: [apache] bandwidth - victor531 - 10-03-2008 12:08 PM

hi sci2tech .....thanks for your knowledge and your time...... now works fine Big Grin (both)



saludos cordiales


Victor