Today I upgrading “the old and lovely” lenny to squeeze for php-5.3.3 reason. For almost 2 full years she’s served well and performing very good, and if its not because the repository goes into the volatile, maybe I’ll just stick and upgrade just the php. 😀 Too many customization i’ve been made and it’s pretty rock solid for all my needs, but life goes on, we cannot stay on a spot and let’s the ride begin. 😀
I always use mod_cband act as a bandwidth throttling for apache so some hosted user not hogging the whole bandwidth just for their site. I recommend you to install this module into your server if your site providing download or stream service. Benefit after installing this module is: justice for all. For you as server owner: you can control the bandwidth usage and limiting your user’s download/stream speed, keep your server’s memory usage in control. Besides, the advantage for users: high availability server, no users dominate the bandwidth alone.
During applying the mod_cband (i’m using 0.9.7.5) on squeeze, the installation itself is fine, but the problem arise during apache loading the module, so it’s better write it down here so it can help others when facing this same problem. Here is the apache error I encountered :
apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/cband.load: Cannot load /usr/lib/apache2/modules/mod_cband.so into server: /usr/lib/apache2/modules/mod_cband.so: undefined symbol: truncf
Action ‘configtest’ failed.
The Apache error log may have more information.
The workaround is simple, after running ./configure, edit the Makefile produced by ./configure before. add “-lm ” after “APXS_OPTS=” and before “-Wc” on line 12.
save it then do make && make install
Now, apache will load the mod_cband module without errors. Yes, I know, this installation step is just a tip of iceberg, to setup the cband config is the real deal 😀 There are a lot of cband config tutorials on the net you may find such as on howtoforge site.
have fun 😀