This article covers how to increase the upload limit in PHP both through the php.ini
file directly and through the MultiPHP INI Editor in cPanel.
Increasing Upload Limit Through the php.ini File
NOTE: Increasing the PHP upload limit only affects the upload limit of the site and does not affect the upload limit of cPanel or PHPMyAdmin, as those are controlled by the server.
- Log into the appropriate cPanel account
- Locate the Document Root of the domain and open it in the File Manager
- Edit the
php.ini
file and locate theupload_max_filesize
andpost_max_filesize
variables - Increase these values to the required size
EXAMPLE: If the customer is requesting the upload limit be increased to 1 GB, change the value to that in Megabytes:
upload_max_filesize = 1024M
post_max_size = 1024M - Save the file
Increasing Upload Limit Through the MultiPHP INI Editor
TIP: When changing INI values with the MultiPHP INI Editor, those changes will be added to 3 different files: php.ini
, .user.ini
, and .htaccess
file. For WordPress sites, do not add these values to the wp-config.php
file.
- Log into the appropriate cPanel account
- Navigate to the Software section in cPanel and click MultiPHP INI Editor
- Select the domain in the dropdown menu
- Find the
upload_max_filesize
andpost_max_filesize
and increase them to the required size - Click Apply
Comments
0 comments
Article is closed for comments.