TL Tech Logo
We Solve Your Problems. Seriously, we actually do.
Home
About Us
Services
Stories
Contact Us
Tools
Info Center
  • Sections

    • Code
    • Howto
    • Tips
  • Recent Entries

    • Recovering from a Broken Partition Table
    • RewriteRule in htaccess vs httpd.conf
    • Running PHP through mod_fcgid
    • How They Got Your Password
    • Installing mod_reqtimeout on cPanel
    • Following the Hacker — passwords
    • Using Nginx as a reverse-proxy
    • Dead-simple templates in PHP
    • Tell-a-friend SPAM
    • PHP mail via SMTP

Installing mod_reqtimeout on cPanel

The Apache module mod_reqtimeout is a simple and effective way to protect yourself from the Slowloris attack.

For reasons the world may never understand, the cPanel team still does not include support for mod_reqtimeout in the EasyApache build utility, even though the module is a core part of the Apache web server distribution. Repeated requests that they add support for this module has gone unanswered, but that doesn’t leave us completely powerless. We can add this support ourselves.

As with the previous installer we built, you can either download the EasyApache module directly, or you can run a perl script to build and/or install it yourself from the latest version.

Getting it Done

I’d recommend reading the write-up for the cloudflare module installer for the details, since there’s no reason to re-hash it all again here. Instead, a synopsis:

Here are the links to download the latest from Github:

  • Installer script: GitHub » reqtimeout.pl
  • Pre-built package: GitHub » custom_opt_mod-mod_reqtimeout.tar.gz

You can run the installer with the following command on your cPanel server:

perl reqtimeout.pl install

Or if you want to build a new package with the latest sources, run this (on any Unix/Linux system):

perl reqtimeout.pl build

Then run EasyApache, and away you go. You’ll have to configure the module yourself, so a quick glance at the configuration options may be handy.

© 2006-2014 TL Tech Services LLC. All rights reserved. Contact us to inquire about republishing rights.