RSS

ModSecurity: Rule execution error – PCRE limits exceeded (-8)

11 Jan

After browsing site you get a blank page and the Apache error logs display following error logs

    [Tue Jul 06 12:15:37 2010] [error] [client XX.XX.XX.XX] ModSecurity: Rule execution error – PCRE limits exceeded (-8): (null). [hostname “www.test.com”] [uri “/forum/login.php”] [unique_id “TDMQWW3LaKoAAGiQ0EYAAAAP”]

In order to solve this error follow following steps:

1) Login to the server as root.

2)Go to directory /usr/local/apache/conf.

   [root@server~] # cd /usr/local/apache/conf

3)Create a file pcre_modsecurity_exceeded_limits.conf and insert following lines in it.

[root@server conf]# vi pcre_modsecurity_exceeded_limits.conf

SecPcreMatchLimit 150000
SecPcreMatchLimitRecursion 150000

4) Save and quit the file.

5) Please ensure the permissions assigned for the file are 600.

[root@server ~]# chmod 600 /usr/local/apache/conf/pcre_modsecurity_exceeded_limits.conf

6) Now open the file /usr/local/apachec/conf/modsec2.user.conf .

[root@server ~]# vi /usr/local/apachec/conf/modsec2.user.conf

7)Locate the line “<IfModule mod_security2.c>“

8 ) Add following line just below the above mentioned line.

Include “/usr/local/apache/conf/pcre_modsecurity_exceeded_limits.conf”

9)Save and quit the file.

10) Now just restart your apache and mysql service. The issue should be fixed now.

Advertisements
 
Leave a comment

Posted by on January 11, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: