5

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!

claudios
  • 6,588
  • 8
  • 47
  • 90

2 Answers2

13

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

Hope this helps!

enter image description here

lchachurski
  • 1,770
  • 16
  • 21
5

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.

Anil Kumar
  • 459
  • 6
  • 16