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.
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).
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
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.
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