PHP/phpMyadmin upload Error code: 413 Error text: Request Entity Too Large (rejected)

Dev

Dev

. min read

Error in processing request Error code: 413 Error text: Request Entity Too Large (rejected) It seems that the connection to server has been lost. Please check your network connectivity and server status.

Open file

/etc/nginx/nginx.conf

Add the line

client_max_body_size 10m;

10m = 10 MB


Then Reload Nginx

service nginx reload


Sources :

  1. Nginx: Set the client_max_body_size directive in nginx.conf
  2. Apache: Set the LimitRequestBody directive in either your httpd.conf file