logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Apache bandwith control problem!
Author
Miiikke



Joined: 12 Jun 2015
Posts: 3

PostPosted: Sat 13 Jun '15 15:57    Post subject: Apache bandwith control problem! Reply with quote

Hello! I'm have been trying for some time to get a working bandwidth control module for my linux webb server.

Code:
Info about the computer:
OS: Linux Debian
Apache version: 2.2.22


- I started by downloading package libapache2-mod-bw (0.91-1) with apt_get. It did install and everything looks fine but it don't work.

Code:
Example apache code:
<VirtualHost *>
   BandwidthModule On
         ForceBandWidthModule On
         Bandwidth all 1024000
         MinBandwidth all 50000

   ServerAdmin info@exampel.com
       DocumentRoot /exampel/webdisk/www/exampel

       ServerName www.exampel.com
       ServerAlias exampel.com
</VirtualHost>


- I know that I could not get mod_bw 0.9 to work at my old windows computer with apache so I tested mod_bw 0.7 or maybe it was 0.8 but I got it to work.

My windows computer is old and windows does not have the stability and is very buggy if you compare to linux and everything works really nice with linux except this thats why I really want this to work.

- I did download mod_bw 0.7 for apache 2.2.22 that probobly will work but... I cant find a compiled "so" version of mod_bw 0.7 and... I get an error when I'm trying to install the dev package for apache so I can compile it my self with apsx2.

Code:
apt-get install apache2-prefork-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-13+deb7u3) but 2.2.22-13+deb7u4 is to be installed
                       Depends: libaprutil1-dev but it is not installable
E: Unable to correct problems, you have held broken packages.


Why do I need this bandwidth control? I'm currently hosting a homepage for a local tv staion. It is not a big website but in week 29 the town I live in will host an big festival that it always do this week and the homepage will be used 10 to maybe 100 times the normal usage and our internet speed will probably be enough if I can get this to work.

I am still kind of new to apache and linux so I hope I explained it so you will understand! ( :
I will be very, very glad if someone can help me with this!

//Best regards Mike
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 17 Jun '15 17:41    Post subject: Reply with quote

does the modules you installed via apt-get load in apache?

You may use

/etc/apache2/apache2ctl -M

to get all the load modules.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 17 Jun '15 17:44    Post subject: Reply with quote

If you can't solve this I recommend to reinstall apache

sudo apt-get update
sudo apt-get purge apache*
sudo apt-get install apache2-prefork-dev


make sure you do a backup of your config files before doing that Wink
Back to top


Reply to topic   Topic: Apache bandwith control problem! View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules