/ home / NGINX / request entity too large when uploading themes in wordpress /

Request Entity too large when uploading themes in wordpress

11:14 pm, February 25, 2016 719 151 0.8 @ 200 wpmrate up KruXoR
1

Original Post Date: 11:54 pm, May 17, 2015

So i came across this one the other day when uploading a theme that was only about 1 meg to a wordpress site that i run on a nginx server.

I checked the php.ini and the max upload size it was set to 16meg, so it was not that. I found that it was a NGINX setting causing this issue.

You have to add this bit to your server file for the wordpress site: client_max_body_size 20M;

See the code below for the full server file for a wordpress site running on nginx.

Edit: also remember to restart nginx when applying this change! otherwise it will have no effect. service nginx restart

11:14 pm, February 25, 2016 719 151

Comments

Reports

Add Report

Report's

KruXoR

This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..

@KruXoR

Minecraft

Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links