简体   繁体   中英

413 Request Entity Too Large (Wordpress Laravel Forge)

It's my first time to use WordPress using laravel forge . I already installed WordPress but the thing is when I upload a new theme .zip file, I notice that the upload is running but after that it says:

413 Request Entity Too Large

Tried also changing these lines below inside site FPM Configuration

memory_limit = 256M
pload_max_filesize = 50M
post_max_size = 60M

I think I need to set the filesize capacity on nginx but I don't know where it's lcoated . Any help would be much appreciated. Thanks!

The issue is related to the nginx server's buffer memory. Try increasing the following parameter:

http {
  client_max_body_size 20M;         
}

You can do this in the server's nginx file in forge panel.

Go to your server configuration > PHP options at Forge, there you will find option to increase max file upload size.

Hope this helps!

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM