I selected DigitalOcean for BestFlare, and while uploading the WordPress theme, I got request entity too large error. Are you in the same situation? Error, which I got:

Let’s find out how large was requested entity.

Login to Nginx server Go to the error file log location. The default location is:

View the file and look for the error, you should see something like “client intended to send too large body.” This is what I was receiving in logs.

By default, Nginx is configured with 2 MB to accept the body size, and as you can see in a request, it was around 8.5 MB hence the above error.

Fix request entity too large error

Add the following parameter in nginx.conf file. A default installation location is /etc/nginx/nginx.conf I have added 10MB. Of course, you can adjust this based on the requirement. To get this reflected, you need to restart the Nginx. Now you should be able to upload the WordPress themes.

Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 18Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 19Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 90Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 49Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 27Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 42Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 81Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 7Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 33Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 45Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 35Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 52Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 39Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 95Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 44Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 7Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 12Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 87Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 43Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 61Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 81Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 77Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 14Nginx   413 Request Entity Too Large  while uploading wordpress theme  - 36