How To Increase Maximum File Size Upload In WordPress

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:

A2 Hosting
$2.99 /mo
Starting price
Visit A2 Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.8
  • Pricing
    4.0
Hostinger
$2.99 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7
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

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.
Click to go to the top of the page
Go To Top