Current time: 11-16-2024, 01:26 PM Hello There, Guest! (LoginRegister)


Post Reply 
[apache] bandwidth
Author Message
oddyutza Offline
Junior Member
*

Posts: 132
Joined: Mar 2007
Reputation: 2
Post: #1
[apache] bandwidth
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
10-01-2008 04:29 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: [apache] bandwidth
You need to enable mod_cband. a2enmod cband then restart apache
10-01-2008 04:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #3
RE: [apache] bandwidth
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
10-01-2008 10:53 AM
Find all posts by this user Quote this message in a reply
alecksievici Offline
Junior Member
*
Beta Team

Posts: 112
Joined: May 2008
Reputation: 0
Post: #4
RE: [apache] bandwidth
(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/showthr...8#pid36638
10-01-2008 10:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
oddyutza Offline
Junior Member
*

Posts: 132
Joined: Mar 2007
Reputation: 2
Post: #5
RE: [apache] bandwidth
both...
10-01-2008 05:43 PM
Find all posts by this user Quote this message in a reply
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #6
RE: [apache] bandwidth
(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
(This post was last modified: 10-02-2008 11:46 AM by victor531.)
10-02-2008 11:43 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: [apache] bandwidth
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.
(This post was last modified: 10-03-2008 01:17 AM by sci2tech.)
10-03-2008 01:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #8
RE: [apache] bandwidth
u..uups ! my quota works .... sorry

But my BW ......stil exceeded


Victor

Ispcp Rc4
debian Etch
[/quote]
10-03-2008 01:15 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: [apache] bandwidth
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.
(This post was last modified: 10-03-2008 01:33 AM by sci2tech.)
10-03-2008 01:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #10
RE: [apache] bandwidth
hi sci2tech .....thanks for your knowledge and your time...... now works fine Big Grin (both)



saludos cordiales


Victor
10-03-2008 12:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)