How To Increase Maximum File Size Upload In WordPress

WordPress is an open source content management tool. It is written in PHP and MySQL. It is an easy platform to create beautiful sites. WordPress uses different plugins, themes, and media files to organize the website. With WordPress, it is easy to create simple blogging sites to full-fledged website. During the course of website development in WordPress, you will face an issue where you won’t be able to upload large file size. In this guide, we will focus on how we can fix this issue easily by editing some minor PHP functions.

Prerequisites

  • A Domain Name (e.g., test.com)
  • Hosting service with cPanel Access

Step 1:
cPanel Login

Go to cPanel admin URL and enter your Credentials to enter the control panel of your hosting.

Click on File Manager to access the root directory of your WordPress site.

 

Step 2:

Now, we need to access the php.ini file using the file manager app or by using an FTP program
if you are using a shared host. You can create a php.ini file yourself and add to the root folder of the site if you don’t find one.

Step 3:

We need to edit some code after opening the php.ini file.
The three codes we need to edit are post_max_size, upload_max_filesize, and memory_limit. Search for these keywords in the php.ini file.

We have changed all the value to 300 M for post_max_size, upload_max_filesize and memory_limit.

Step 6:

Depending upon on the server setup, we can also change the limit from the UI
. For that, go to your cPanel and look for Select PHP version from the UI.

Click on Switch to PHP option and then you can change the upload_max_filesize from a set of options.

Conclusion:

By following the above steps, you can increase the maximum file size upload in WordPress and install different plugins and media files to your sites.

Check out these top 3 WordPress hosting services:

HostArmada
$2.49 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
Kamatera
$4.00 /mo
Starting price
Visit Kamatera
Rating based on expert review
  • User Friendly
    3.5
  • Support
    3.0
  • Features
    3.9
  • Reliability
    4.0
  • Pricing
    4.3
Hostens
$2.00 /mo
Starting price
Visit Hostens
Rating based on expert review
  • User Friendly
    4.5
  • Support
    3.8
  • Features
    4.3
  • Reliability
    4.5
  • Pricing
    4.8

How to customize the WordPress Admin Login Page

Who wouldn't want to customize their login page? In this guide, we will learn ho
1 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How To Debug And Log Errors In WordPress Site

In this guide, we will learn how to debug and log errors that starts appearing o
2 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Fix “Error Establishing Database Connection.” in WordPress

Error Establishing a Database Connection is one of those curses that could be ca
4 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How To Logout All Users In WordPress At Once

What will you do if your WordPress site has been hacked or want all the users to
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.