Getting Drupal and mod_security to Play Nicely Together on Red Hat 5.x Servers | Linux Today

Getting Drupal and mod_security to Play Nicely Together on Red Hat 5.x Servers

Written By
Web Webster
Web Webster
Nov 4, 2010

[ Thanks to Caitlyn Martin for this link.
]

“Deploying Drupal on an Apache web server with
mod_security or adding mod_security to an Apache server with Drupal
running should be as easy as installing the relevant packages.
Unfortunately, on Red Hat Enterprise Linux (RHEL) 5.4 and 5.5
servers it just isn’t so. This is due to a combination of a bug and
an outdated Core Rule Set (CRS) in the current mod_security package
in the EPEL (Extra Packages for Enterprise Linux) repository. I’ve
seen lots of posts online where people were struggling with this
combination so I decided a how-to article was in order.

“The problems are entirely in the mod_security package. I’ve
written this from the perspective of having Apache and Drupal
already running and adding mod_security, which is how I did it on
four web servers recently. However, the order in which you install
things really shouldn’t matter. I am also assuming that most
readers will have already added EPEL to their sources for yum or at
least be aware of how to do that. These instructions will also work
on other Linux distributions which are binary compatible with RHEL
including CentOS and Scientific Linux.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.