How to increase Maximum Upload size in cPanel?
On cpanel -> software and services -> Select PHP Version.
Choose a PHP version which not the native one (I recommend php 5.6 or last one) and you will have / see a new link “Switch To PHP Settings”, click it, in PHP Settings you can set upload_max_filesize in last line , clicking on value ( default is 2M ) , and you got a dropbox with values that you can set to upload_max_filesize, and click save .
We can increase maximum upload file size for WordPress media uploads in 3 different ways.
That’s are
- .htaccess way
- PHP.INI file method
- Theme’s Functions.php File
For .htaccess way, add following code,
php_value upload_max_filesize 1024M
php_value post_max_size 1024M
php_value max_execution_time 1000
php_value max_input_time 1000
for PHP.INI file method, add following code,
upload_max_filesize = 1024M
post_max_size = 1024M
max_execution_time = 1000
for Theme’s Functions.php File, add following code,
@ini_set( ‘upload_max_size’ , ’1024M’ );
@ini_set( ‘post_max_size’, ’1024M’);
@ini_set( ‘max_execution_time’, ’1000′ );