Skip to content

Instantly share code, notes, and snippets.

@majeedraza1
Created May 16, 2022 10:56
Show Gist options
  • Save majeedraza1/2e4ab0fb516d0147b18f5605aa2331f5 to your computer and use it in GitHub Desktop.
Save majeedraza1/2e4ab0fb516d0147b18f5605aa2331f5 to your computer and use it in GitHub Desktop.
PHP configuration for a WordPress site.
; the maximum time in seconds a script is allowed to run before it is terminated by the parser
max_execution_time = 300
; the maximum amount of memory in bytes that a script is allowed to allocate.
; Suggested: 256 MB or greater
memory_limit = 128M
; How many input variables may be accepted
max_input_vars = 4000
; Sets max size of post data allowed. To upload large files, this value must be larger than upload_max_filesize.
post_max_size = 64M
; The maximum size of an uploaded file. post_max_size must be larger than this value.
upload_max_filesize = 32M
@majeedraza1
Copy link
Author

majeedraza1 commented May 18, 2022

If you are using Nginx server, you also need to increase client_max_body_size

# set client body size
client_max_body_size 32M;

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