简体   繁体   English

413请求实体太大(Wordpress Laravel Forge)

[英]413 Request Entity Too Large (Wordpress Laravel Forge)

It's my first time to use WordPress using laravel forge . 这是我第一次使用laravel forge使用WordPress。 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: 我已经安装了WordPress,但问题是当我上传一个新的主题.zip文件时,我注意到上传正在运行,但之后它说:

413 Request Entity Too Large

Tried also changing these lines below inside site FPM Configuration 尝试在站点FPM配置中更改以下这些行

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 . 我想我需要在nginx上设置文件大小容量,但我不知道它在哪里被lcoated。 Any help would be much appreciated. 任何帮助将非常感激。 Thanks! 谢谢!

The issue is related to the nginx server's buffer memory. 该问题与nginx服务器的缓冲区内存有关。 Try increasing the following parameter: 尝试增加以下参数:

http {
  client_max_body_size 20M;         
}

You can do this in the server's nginx file in forge panel. 您可以在伪造面板中的服务器的nginx文件中执行此操作。

Go to your server configuration > PHP options at Forge, there you will find option to increase max file upload size. 转到Forge的服务器配置> PHP选项,您将找到增加最大文件上载大小的选项。

Hope this helps! 希望这可以帮助!

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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