Question
How do you increase the maximum file upload size limit in PHP?
Answer
By default, cPanel sets the maximum file upload size to 2MB. Follow this guide to increase the upload limit.
- Log in to WHM as
root - Navigate to Home / Software / MultiPHP INI Editor
- Select the version of PHP that your site uses
- Increase the following variables
- upload_max_filesize
- post_max_size (This should be larger than or equal to upload_max_filesize)
- memory_limit (This should be larger than or equal to post_max_size)
- max_execution_time (Optional, but can prevent timeout errors for large files)
- Click Apply
- Repeat for all versions of PHP for which you require larger file upload sizes
Note: The maximum size for these variables is 2GB
Comments
0 comments
Article is closed for comments.