<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apache, Linux ,Seo tricks and many more &#187; mod_bandwidth</title>
	<atom:link href="http://www.gossiplime.com/tag/mod_bandwidth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gossiplime.com</link>
	<description>This blog is just for all persons to know more about php, apache , linux , seo etc</description>
	<lastBuildDate>Wed, 08 Jul 2009 16:40:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Install mod_bandwidth</title>
		<link>http://www.gossiplime.com/2009/03/install-mod_bandwidth/</link>
		<comments>http://www.gossiplime.com/2009/03/install-mod_bandwidth/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 16:46:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[mod_bandwidth]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=308</guid>
		<description><![CDATA[What is Mod_Bandwidth &#8220;Mod_bandwidth&#8221; (mod bandwidth) is a module for the Apache webserver that enable the setting of server-wide or per connection bandwidth limits, based on the directory, size of files and remote IP/domain. For Apache 1.3x. ONLY! This how-to is not compatible with old versions of apache, including but not limited to 1.3beta How [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Mod_Bandwidth</strong></p>
<p>&#8220;Mod_bandwidth&#8221; (mod bandwidth) is a module for the Apache webserver that enable the setting of server-wide or per connection bandwidth limits, based on the directory, size of files and remote IP/domain.</p>
<p>For Apache 1.3x. ONLY! This how-to is not compatible with old versions of apache, including but not limited to 1.3beta</p>
<p><span style="color: #333399;"><strong>How to install mod_bandwidth</strong></span></p>
<p>1. Login to your server via SSH as root.</p>
<p>2. Type: mkdir /root/mod_bw</p>
<p>3. Type: cd /root/mod_bw</p>
<p>4. Type: wget ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c</p>
<p>5. Type: /usr/local/apache/bin/apxs -c /root/mod_bw/mod_bandwidth.c -o /usr/local/apache/libexec/mod_bandwidth.so</p>
<p>6. Type: mkdir /usr/local/apache/bw_limit</p>
<p>7. Type: mkdir /usr/local/apache/bw_limit/link</p>
<p>8. Type: mkdir /usr/local/apache/bw_limit/master</p>
<p>9. Type: pico -w /etc/httpd/conf/httpd.conf</p>
<p>10. Locate the following Line: LoadModule rewrite_module libexec/mod_rewrite.so</p>
<p>11. <strong>Before</strong> the above line add this:<br />
LoadModule bandwidth_module libexec/mod_bandwidth.so</p>
<p>12. Now locate this line: AddModule mod_env.c</p>
<p>13. <strong>Before</strong> the above line add this:<br />
AddModule mod_bandwidth.c</p>
<p>14. Now locate this line: # Document types.</p>
<p>15. <strong>Before</strong> the above line add this:<br />
BandWidthDataDir &#8220;/usr/local/apache/bw_limit&#8221;<br />
BandWidthModule On</p>
<p>16. To enable mod_bandwidth on a virtual host locate the virtual host entry for the specified domain/acount you wish to limit. Just before the line add the following:<br />
BandWidthModule On<br />
BandWidth all 512</p>
<p>The 512 can be replaced with whatever rate you wish to limit the acount too.</p>
<p>17. Save the file and exit.<br />
CTRL-X then Y then enter.</p>
<p>18. Type: service httpd restart</p>
<p>19. Type: cd /usr/sbin</p>
<p>20. Type: wget ftp://ftp.cohprog.com/pub/apache/module/cleanlink.pl</p>
<p><strong>What is cleanlink?</strong><br />
Cleanlink is a deamon that is used to clean links created by mod_bandwidth when they aren&#8217;t removed properly by the server. (When a httpd process doesn&#8217;t terminate the usual way.)</p>
<p>21. Type: chmod 755 cleanlink.pl</p>
<p>22. Type: pico -w cleanlink.pl</p>
<p>23. Change $LINKDIR to the following:<br />
$LINKDIR=&#8221;/usr/local/apache/bw_limit/link&#8221;;</p>
<p>24. Save the file and exit.<br />
CTRL-X then Y then enter.</p>
<p>25. Type: perl cleanlink.pl</p>
<p>26. Type: pico -w /etc/rc.d/rc.local</p>
<p>27. Scroll down to the very end of the file and add the following:<br />
# The following line Launches CleanLink for Mod_Bandwidth<br />
perl /usr/sbin/cleanlink.pl</p>
<p>28. Save the file and exit.<br />
CTRL-X then Y then enter.</p>
<p>mod_bandwidth has many options. If you wish to modify mod_bandwidth and enable more options please visit the documentation available by the programmer here: http://www.cohprog.com/v3/bandwidth/doc-en.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/03/install-mod_bandwidth/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

