{"id":2381,"date":"2012-09-15T20:30:52","date_gmt":"2012-09-15T13:30:52","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=2381"},"modified":"2012-09-15T20:30:52","modified_gmt":"2012-09-15T13:30:52","slug":"mod_cband-on-squeeze","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=2381","title":{"rendered":"mod_cband on squeeze"},"content":{"rendered":"<p style=\"text-align: justify;\">Today I upgrading &#8220;the old and lovely&#8221; lenny to squeeze for php-5.3.3 reason. For almost 2 full years she&#8217;s served well and performing very good, and if its not because the repository goes into the volatile, maybe I&#8217;ll just stick and upgrade just the php. \ud83d\ude00 Too many customization i&#8217;ve been made and it&#8217;s pretty rock solid for all my needs, but life goes on, we cannot stay on a spot and let&#8217;s the ride begin. \ud83d\ude00<\/p>\n<p style=\"text-align: justify;\">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\u2019s download\/stream speed, keep your server\u2019s memory usage in control. Besides, the advantage for users: high availability server, no users dominate the bandwidth alone.<\/p>\n<p style=\"text-align: justify;\">During applying the mod_cband (i&#8217;m using 0.9.7.5) on squeeze, the installation itself is fine, but the problem arise during apache loading the module, so it&#8217;s better write it down here so it can help others when facing this same problem. Here is the apache error I encountered :<\/p>\n<p style=\"text-align: justify;\">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<br \/>\nAction \u2018configtest\u2019 failed.<br \/>\nThe Apache error log may have more information.<br \/>\nfailed!<\/p>\n<p style=\"text-align: justify;\">The workaround is simple, after running .\/configure, edit the Makefile produced by .\/configure before. add \u201c<strong>-lm <\/strong>\u201d after \u201c<strong>APXS_OPTS=<\/strong>\u201d and before \u201c<strong>-Wc<\/strong>\u201d on line 12.<\/p>\n<p><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2012\/09\/mod_cband.png\" rel=\"lightbox[2381]\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2382\" title=\"mod_cband\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2012\/09\/mod_cband-300x218.png\" alt=\"\" width=\"300\" height=\"218\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">save it then do make &amp;&amp; make install<\/p>\n<p style=\"text-align: justify;\">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 \ud83d\ude00 There are a lot of cband config tutorials on the net you may find such as on howtoforge site.<\/p>\n<p>have fun \ud83d\ude00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I upgrading &#8220;the old and lovely&#8221; lenny to squeeze for php-5.3.3 reason. For almost 2 full years she&#8217;s served well and performing very good, and if its not because the repository goes into the volatile, maybe I&#8217;ll just stick and upgrade just the php. \ud83d\ude00 Too many customization i&#8217;ve been made and it&#8217;s pretty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,9],"tags":[36,152],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/2381"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2381"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/2381\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/2383"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}