413 Request Entity Too Large

413 Request Entity Too Large error occurs when a request made from a client is too large to be processed by the web server. An example request, that may cause this error would be if a client was trying to upload a large file to the server (e.g. a large media file)

To resolve this issue increase upload file size in php.ini if you are using whm you can do it from miultiphp ini editor

First edit the Nginx configuration file (nginx.conf)

Location: sudo nano /etc/nginx/nginx.conf

Add following codes:

http {
        client_max_body_size 100M;
}

Then Add the following lines in PHP configuration file(php.ini)

Location: sudo gedit /etc/php5/fpm/php.ini

Add following codes:

memory_limit = 128M 
post_max_size = 20M  
upload_max_filesize = 10M

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat