I looked it up and found that the installation was very simple. However, with Ensim it's even simpler.
This is my first HOWTO. If anything is wrong please correct me.
1. Login to your box using SSH2 and su to root.
2. Make a backup of your existing httpd_app.conf file. Just in case.
3. Edit the httpd_app.conf file using your favourite editor. I personally like pico.
pico –w /etc/httpd/conf/httpd_app.conf
4. Look for the following line:
#LoadModule bandwidth_module modules/mod_bandwidth.so
uncomment it so it looks like:
LoadModule bandwidth_module modules/mod_bandwidth.so
5. Look for the following line:
#AddModule mod_bandwidth.c
uncomment it so it looks like:
AddModule mod_bandwidth.c
6. Save the changes and exit the editor.
7. Restart the apache webserver. Make sure everything is okay. If not, restore your httpd_app.conf file to how it was before.
/sbin/service httpd restart
8. You now have mod_bandwidth enabled and ready to use. To use mod_bandwidth on one site open it’s configuration file. Each site has it’s own, simply edit the corresponding sites config file using your favourite editor. I’m using site1 as an example. Remember to back up first!
pico –w /etc/httpd/conf/virtual/site1
9. Look for the following:
Allow from all
AllowOverride All
Order allow,deny
Change it so it looks like:
Allow from all
AllowOverride All
Order allow,deny
BandWidthModule On
BandWidth all 20480
Change the number 20480 to whatever you want to limit the sites overall bandwidth to. That number is in bytes/s.
http://oxiegen.net/mods/bandwidth/convert.php << Here you can convert kbits/s into bytes/s if you are a little confused. It has saved me loads of time.
10. Restart apache again and make sure everything is okay.
/sbin/service httpd restart
11. Remember that this modification will be lost when Ensim upgrades apache, if you upgrade to Ensim 3.5 or if you change settings of this site in the control panel and save. Keep a backup.
Anyway, hope this helps. It certainly helped me.
For more configuration information on mod_bandwidth go to: http://www.cohprog.com/v3/bandwidth/intro-en.html
Dave.