<?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>Weblog Tools Collection &#187; how_to</title>
	<atom:link href="http://weblogtoolscollection.com/archives/tag/how_to/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<lastBuildDate>Tue, 14 Feb 2012 14:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To: Install mod_security</title>
		<link>http://weblogtoolscollection.com/archives/2007/03/04/how-to-install-mod_security/</link>
		<comments>http://weblogtoolscollection.com/archives/2007/03/04/how-to-install-mod_security/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 01:13:13 +0000</pubDate>
		<dc:creator>Mark Ghosh</dc:creator>
				<category><![CDATA[HOW-TO]]></category>
		<category><![CDATA[WordPress FAQs]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[how_to]]></category>
		<category><![CDATA[mod_security]]></category>

		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2007/03/04/how-to-install-mod_security/</guid>
		<description><![CDATA[mod_security is a well known web application firewall for Apache that is easy to setup and provides a fair amount of protection from web malware and can even provide some protection from comment spam. The benefits of mod_security have been discussed over and over again and with the recent unforeseen problems with WordPress (In case you have not heard about it, if you have not upgraded your WordPress 2.1.1 installation, you need to do it NOW), mod_security would have provided a level of security if it was installed. Since I had to install mod_security on one of my servers, the steps are fresh in my mind and worth a post. All of the steps below are assuming that you have some sort of a LAMP installation over which you have complete control. If you are on a shared host on LAMP, you will have to ask your provider to install [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.modsecurity.org/">mod_security is a well known web application firewall for Apache</a> that is easy to setup and provides a fair amount of protection from web malware and can even provide some protection from comment spam. The benefits of mod_security have been <a href="http://wordpress.org/development/2005/05/security-update/">discussed</a> <a href="http://www.onlamp.com/pub/a/apache/2003/11/26/mod_security.html">over</a> and <a href="http://jeremy.zawodny.com/blog/archives/007442.html">over</a> again and with the recent unforeseen problems with WordPress (<strong>In case you have not heard about it, if you have <a href="http://wordpress.org/development/2007/03/upgrade-212/">not upgraded your WordPress 2.1.1 installation</a>, you need to do it NOW</strong>), mod_security would have provided a level of security if it was installed. Since I had to install mod_security on one of my servers, the steps are fresh in my mind and worth a post. All of the steps below are assuming that you have some sort of a LAMP installation over which you have complete control. If you are on a shared host on LAMP, you will have to ask your provider to install mod_security for you.</p>
<p>If you are running some version of <a href="http://fedora.redhat.com/">Fedora</a> greater than Core 2, mod_security installation might be as simple as invoking yum:</p>
<blockquote><p><code>/usr/bin/yum install mod_security<br />
/etc/init.d/httpd restart</code></p></blockquote>
<p>For Debian and Ubuntu, you could do:</p>
<blockquote><p><code>apt-get install libapache2-mod-security<br />
a2enmod mod-security<br />
/etc/init.d/apache2 force-reload</code></p></blockquote>
<p>If per chance you are running a version of Fedora that does not have the mod_security package, you will need to download the source, compile the module, configure mod_security and restart Apache.</p>
<ul>
<li>Get the latest version of mod_security from <a href="http://www.modsecurity.org/download/modsecurity-apache_2.1.0.tar.gz">http://www.modsecurity.org/download/modsecurity-apache_2.1.0.tar.gz</a></li>
<li>Make sure you have httpd-devel installed with<br />
<blockquote><p><code>/usr/bin/yum httpd-devel install</code></p></blockquote>
</li>
<li>Follow the <a href="http://www.modsecurity.org/documentation/modsecurity-apache/2.1.0/modsecurity2-apache-reference.html#02-installation">steps outlined here</a>. The steps are very clear and should not be confusing. For the step that asks to configure mod_security, you can use a <a href="http://fedoranews.org/jorge/mod_security/mod_security.conf">very basic config from here</a> and copy the contents to /etc/httpd/conf.d/mod_security.conf More detailed rules can be <a href="http://www.gotroot.com/mod_security+rules">found here</a>.</li>
<li>After Apache restarts, make sure you web application (and WordPress) are running as normal</li>
</ul>
<p>If things break, removing the module is as simple as commenting out the line that activates mod_security in httpd.conf (search for mod_security in /etc/httpd/conf/httpd.conf) and restarting your Apache. There are lots of fun rules for <a href="http://www.gotroot.com/downloads/ftp/mod_security/2.0/apache2/blacklist.conf">comment spam mitigation</a>, <a href="http://www.gotroot.com/downloads/ftp/mod_security/recons.conf">Google Hack Signatures</a> and other tricks that you can add to mod_security. As with any high level application security, this adds overhead and there is a delicate balance between protection and paranoia. mod_security 2.1.0 has significant performance improvements over earlier versions.</p>
<p><strong>Standard Disclaimer: This How To comes without any warranty or guarantee of any sort. Please take these steps at your own risk and do not modify or change anything you are not familiar or comfortable with. I will not be responsible if you break your server. </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://weblogtoolscollection.com/archives/2007/03/04/how-to-install-mod_security/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  weblogtoolscollection.com/archives/tag/how_to/feed/ ) in 0.59282 seconds, on Feb 14th, 2012 at 5:35 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 14th, 2012 at 6:35 pm UTC -->
