Rule execution error – PCRE limits exceeded (-8)


[Tue 01 11:14:37 ] [error] [client XX.XX.XX.XX] ModSecurity: Rule execution error – PCRE limits exceeded (-8): (null). [hostname “www.domainname.com”] [uri “/client/forgot_password.php”] [unique_id “HADMQWW3LaKoLKAiYAAaAAP”]

To fix This modsecurity issue with the domain, followed the steps given below :

1) Login to the server as root.
2)Go to directory /usr/local/apache/conf
Run :
[root@localhost~]# cd /usr/local/apache/conf
3)Then Create a file “pcre_modsecurity_exceeded_limits.conf” and paste following lines in it.
Run :

[root@localhost conf]# vi pcre_modsecurity_exceeded_limits.conf Code need to be paste :

SecPcreMatchLimit 150000
SecPcreMatchLimitRecursion 150000

4) Save and quit the file.
5) Make sure that the permissions assigned for the file are 600.
Run :
[root@localhost ~]# 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) Find the line ““
8 ) Add following line just below the above mentioned line that is ““
—————————————————–
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.

[root@localhost ~]# /etc/init.d/httpd restart ; /etc/init.d/mysqld restart


HR-ADMIN

Recent Posts

The Ultimate Showdown: Linux vs Windows for VPS Hosting

As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…

2 weeks ago

Questions to Ask Your Web Hosting Support Team

Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…

2 weeks ago

How to Secure Your WordPress Site in 2025

Welcome to the complete guide to WordPress security best practices in 2024. As technology evolves rapidly, implementing strong security measures…

3 weeks ago

Unlocking the Secrets of Hosting: Essential Questions to Ask Hostripples

Hey, wanted to learn about web hosting? Or do you want to start a new website and need hosting? Questions…

3 weeks ago

DDoS Attacks: What You Need to Know for Protection

In today's digital world, the threat of DDoS attacks has become increasingly prevalent. These types of attacks have the power…

1 month ago