Increase Maximum File Upload Size In WordPress With Shared Hosting + 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 a 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).
Table of Contents
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’.
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.
+ To get the latest promotions, events. Please check out this link
+ To get the fastest answer, the FAQ Page is the best place to look for
+ Keep up with 1Byte’s YouTube channel to make it simpler to comprehend
+ As always, 1Byte would bring you fresh content and exclusive deals in the future. STAY TUNED!!!