title: Installing mod_security on EC2
body: <p>I am trying to install mod_security using yum install mod_security but I get this error</p>
  
  <pre><code>Loaded plugins: priorities, update-motd, upgrade-helper
  amzn-main/latest                                                                           | 2.1 kB     00:00
  amzn-updates/latest                                                                        | 2.3 kB     00:00
  Resolving Dependencies
  --&gt; Running transaction check
  ---&gt; Package mod_security.x86_64 0:2.7.3-3.23.amzn1 will be installed
  --&gt; Processing Dependency: httpd-mmn = 20051115 for package: mod_security-2.7.3-3.23.amzn1.x86_64
  --&gt; Running transaction check
  ---&gt; Package httpd.x86_64 0:2.2.27-1.2.amzn1 will be installed
  --&gt; Processing Dependency: httpd-tools = 2.2.27-1.2.amzn1 for package: httpd-2.2.27-1.2.amzn1.x86_64
  --&gt; Running transaction check
  ---&gt; Package httpd-tools.x86_64 0:2.2.27-1.2.amzn1 will be installed
  --&gt; Processing Conflict: httpd24-2.4.9-1.55.amzn1.x86_64 conflicts httpd &lt; 2.4.9
  --&gt; Processing Conflict: httpd24-tools-2.4.9-1.55.amzn1.x86_64 conflicts httpd-tools &lt; 2.4.9
  --&gt; Finished Dependency Resolution
  Error: httpd24 conflicts with httpd-2.2.27-1.2.amzn1.x86_64
  Error: httpd24-tools conflicts with httpd-tools-2.2.27-1.2.amzn1.x86_64
   You could try using --skip-broken to work around the problem
   You could try running: rpm -Va --nofiles --nodigest
  </code></pre>
  
  <p>I already removed httpd24-tools-2.4.9-1.55.amzn1.x86_64 and httpd24-2.4.9-1.55.amzn1.x86_64</p>