How To Overcome WordPress Upload Limit

Notice: A non well formed numeric value encountered in /home/wiseguys/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/wiseguys/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hence, if you are using WordPress either on shared host or VPS, you might in the trouble that WordPress upload limit file size. Usually from 32M to 128M. Today we will go through from basic to advanced way to change WordPress upload limit.

Easy Ways To Change WordPress Upload Limit

Here’re the ways you can change your upload limitation through the interface or anything that you no need to touch a line of code. We will learn how to do that at the advanced part.

If you are using WHM.

WHM stand for Web Hosting Manager, a tool that provided by cPanel¬©. With the right to access WHM, that means you can tweak your upload max file size through the interface, here’s how to do.

How To Overcome WordPress Upload Limit
WordPress Upload Limit – WHM

If you do not know how to do, please follow these steps:

  • Access to WHM
  • Navigate to Server Configuration > Tweak Settings
  • Choose PHP tab
  • Input your desired upload max file size.

Advanced Ways To Change WordPress Upload Limit

This method will work absolutely, in any case, that mean they do not depend on what control panel you’re using, either cPanel or VestaCP, Direct Admin or Plesk, free or paid, this method is all applied.

You must have the right to access root through SSH, if you do not know what it’s SSH, learn more here. Usually, this way will be applied to Virtual Private Server (VPS).

If you do not know how to get your credentials to access VPS through SSH, you can contact your VPS providers. In most case, credentials will be:

Ok, if you’re good with SSH now, let’s finish it.

Step 1: Connect to SSH

You can connect to SSH through command lines tools like Putty (for Windows) or Terminal (on OSX).

How To Overcome WordPress Upload Limit
Login to SSH & find php.ini path

Step 2: Install locates tool

yum -y install mlocate (for CentOS)
apt-get install locates for (Ubuntu)

Step 3: Find your php.ini file location


locate php.ini

Step 4: Edit php.ini file

You really should open your file with FileZilla or FTP Cute, as it will be easier for you to go to the right line that you want to edit faster.

Ctrl + F (or CMD + F for OSX) to fine “upload_max_filesize”

It will look like the image below, change the number on the right side to your desire number.

How To Overcome WordPress Upload Limit
PHP.INI Example file

Step 5: Save & restart service

After editing the file and sve it, you can go back to your Terminal or Putty and run the command as below

service httpd restart




  1. June 13, 2016 at 2:18 pm

    Thanks for a great blog post. Remember also that you might need to change in the Nginx config file if you are using the Nginx web server

    1. toaitran June 13, 2016 at 3:56 pm

      Thanks, I will update it today for Nginx settings. Great remind mate!

  2. Thuong Le August 23, 2016 at 9:18 am

    Hi Toai, Nice tutorial,

    But you need to change max post size, too. Else it won’t work.



Leave A Comment

Your email address will not be published. Required fields are marked *