How to increase Maximum Upload size in cPanel?

Trainee Asked on October 10, 2019 in Cpanel.
Add Comment
2 Answer(s)

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 .

Reviewer Answered on October 10, 2019.
Add Comment

We can increase maximum upload file size for WordPress media uploads in 3 different ways.

That’s are

  1. .htaccess way
  2. PHP.INI file method
  3. 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 );
Reviewer Answered on October 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.