Increase Maximum File Upload Size in WordPress With Shared Hosting and cPanel


WordPress is a powerhouse with so many themes and plugins that allow you to build just about any kind of website. From eCommerce to a simple blog, WordPress has you covered. However, when choosing web hosting for WordPress, you should consider performance, security, and support in the first place. If you are building a WordPress website that hosts a portfolio with large image files or a video hosting site with a single media file size running into GBs, then you might face a roadblock of not being able to upload media files larger than 25MB (in most cases).


You may need WordPress hosting on shared hosting or cloud hosting if you don’t have to go to buy now on our website 1Byte.

How to Check the Current Maximum Upload Size in WordPress?

Go to WP Admin Media Add New to view the maximum upload size restriction for your WordPress website. The maximum upload size is currently displayed at the bottom.

You can keep it as is if the existing maximum upload size restriction satisfies your requirements. If it doesn’t, don’t worry; there are numerous ways to raise WordPress’s maximum upload size.

Method 1: Update PHP.INI Option

This is a default file used to configure any application which runs on PHP. This file contains parameters required for file timeout, upload size, and resource limits. Access your WordPress root directory using SSH or FTP and look for a php.ini file. In some cases, this file is not visible the other option would be to create a new file instead.

Open any text editor and create a new file. Copy the following code and save it as php.ini.

upload_max_filesize = 25M
post_max_size = 13M
memory_limit = 15M

If your web host has a cPanel dashboard, then you can increase the file upload size through the built-in tools.

To do this, log in to your WordPress hosting account dashboard and go to the ‘Software’ section.

Then, click on ‘MultiPHP INI Editor’.


Select the home directory or a domain’s document root to open the corresponding PHP configuration.

configure PHP INI basic settings

Next, scroll down to the section labeled ‘upload_max_filesize’ and enter a new maximum filesize into the box.


Then, click the ‘Apply’ button

Method 2: Update .htaccess File

The way to increase the maximum file size is by modifying the ” .htaccess “ file. This file controls the high-level configuration settings for your website.

To do this, you need to log in to your website server via FTP

After that, you need to locate your .htaccess file in your website’s root folder. 


If you can’t find your .htaccess file, then it could be hidden by your file manager or FTP client

Next, you need to add the following code snippet to your .htaccess file. 

php_value upload_max_filesize 1G
php_value post_max_size 1G
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300

To increase your maximum file upload size even more, simply change the ’64M’ to the size you require.


WordPress is a versatile CMS. There is always a way to do something. If you cannot find an answer to any of your issues pertaining to WordPress, you can go to our blog or contact our customer support team. Your company can take advantage of 1Byte specialized shared hosting and cloud hosting plan by clicking here.