By default, PHP is set to allow uploads of files with a size of 2MB or less. If you are using a PHP script such as WordPress and need to increase the upload max file size, then you will have to adjust your PHP settings from cPanel and raise the values for "upload_max_filesize" and "post_max_size".
To change the "upload_max_filesize" and "post_max_size" for PHP, follow these simple steps:
- Log into cPanel.
- Under the Software section, click 'Select PHP Version' icon.
- Then click 'Switch to PHP options' link.
- You can now change the values for upload_max_filesize and post_max_size
- click the Apply button.
- hit the Save button & enjoy!
Additional information
The value of post_max_size should not exceed the PHP memory_limit.