Table of Contents

INTRODUCTION

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

PREREQUISITES

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

GETTING STARTED

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

MulitiPHP

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

upload_max_filesize.png

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. 

htaccess

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

CONCLUSIONS

+ 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’s specialized hosting plan by clicking here.

MORE REFERENCES

+ 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!!!

JOINT OUR GROWING FAMILY