Skip to content

Instantly share code, notes, and snippets.

@ricardoaugusto
Created March 11, 2018 12:34
Show Gist options
  • Save ricardoaugusto/820112fdd9b4ff6934f81875e4edf130 to your computer and use it in GitHub Desktop.
Save ricardoaugusto/820112fdd9b4ff6934f81875e4edf130 to your computer and use it in GitHub Desktop.
Increases the upload size on Laravel Nginx installation, fixes the 413 request entity too large and PostTooLargeException

Edit the file php.ini (or PHP FPM if on Forge):

memory_limit = 512M

post_max_size = 20M

upload_max_filesize = 20M

Edit the nginx.config:

client_max_body_size 20M;

Restart nginx and PHP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment