ModSecurity: Request body (Content-Length) is larger than the configured limit

Message : ModSecurity: Request body (Content-Length) is larger than the configured limit To resolve the issue, Modify your modsec2.conf and change the limit set for SecRequestBodyInMemoryLimit # vi /etc/httpd/conf/modsec2.conf Search for SecRequestBodyInMemoryLimit SecRequestBodyInMemoryLimit 531072 Increase the value as per your need, save the file and restart the apache service. https://wiki.iphoster.net/wiki/Apache_-_mod_security_-_Request_body_(Content-Length)_is_larger_than_the_configured_limit https://stackoverflow.com/questions/13887812/request-body-content-length-is-larger-than-the-configured-limit https://support.plesk.com/hc/en-us/articles/115001764933-Unable-to-upload-file-to-the-website-Request-body-no-files-data-length-is-larger-than-the-configured-limit- https://forum.directadmin.com/threads/cwaf-request-body-no-files-data-length-is-larger-than-the-configured-limit.61157/ https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)#SecRequestBodyInMemoryLimit

How to Install ioncube on Linux Centos 7

ionCube is a commercial software consisting of PHP encoders, it is used as an encryption / decryption utility for PHP applications where we can store our data securely. This tutorial will guide you how to install the PHP Ioncube Loaders module in the linux CentOS/ RHEL 7 system. 1) Download ioncube : # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz …

Read more

How to Zip a Directory in Linux

This steps will show you how you can Zip a Directory in Linux CentOS or redhat operating system. Zip is the most widely used archive files format that supports loss-free data compression and it may contain a large number of compressed files. 1. How to install zip in linux CentOS or Redhat # yum install …

Read more

How to Setup SSH Login Without Password in Linux

Automating routine tasks is important for linux administrators, this is to avoid overloading them when doing the same tasks every day. Tasks such as file transfer from server A to server b using scp or rsync commands can be automated by setting up the SSH login without password and integrate it with scp or rsync. …

Read more

How to Change Hostname on Linux

This article show to change hostname in linux CentOS 7 and Ubuntu 18 : Change hostname on linux Centos 7.7 : # hostnamectl set-hostname centos77.linodelinux.com # hostnamectl hostnamectl Static hostname: centos77.linodelinux.com Icon name: computer-vm Chassis: vm Machine ID: 341e401e827641bda8eac222c3988c65 Boot ID: 0d2752d42a6a4325aa07f8d92162b852 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: …

Read more

How to Check OS Version in Linux

There are several ways to check what CentOS version is running on your linux VPS. Below are some examples of how to determine the CentOS version. The following command works with all CentOS versions. How to Check OS Version in Linux # cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) How to check the kernel version …

Read more

How to Find and Replace Text using sed Command in Linux

In this post i will show to to find and replace text using sed command. We take /etc/host file as an example. We will replace any text “linodelinux.com” to “linodelinux.local” in /etc/hosts # cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.8.111 www.linodelinux.com 192.168.8.111 website1.linodelinux.com 192.168.8.111 website2.linodelinux.com Just issue this command …

Read more

How to Configure SSL Certificate in Apache Web Server

This article will show how you can enable ssl on you Apache web server container. ServerAdmin support@domain.com ServerName domain.com DocumentRoot /var/www/html/domain.com <Directory “/var/www/html/domain.com”> Options FollowSymLinks MultiViews AllowOverride All #Allow from all <Directory “/var/www/html/domain.com/wp-content/uploads/”> <Files “*.php”> Order Deny,Allow Deny from All ErrorLog logs/domain.com_ssl_error.log TransferLog logs/domain.com_ssl_access.log # SSL Engine Switch: # Enable/Disable SSL for this virtual host. …

Read more