How to increase the maximum file upload size limit in PHP?

  WHM

Introduction

By default, cPanel sets the maximum PHP file upload size to 2MB. This limit may not be enough when uploading large files such as images, videos, backups, themes, plugins, or application files. To allow larger uploads, you can increase the PHP upload limit from WHM using the MultiPHP INI Editor.

Prerequisites

Before starting, make sure you have:

Procedure

Step 1:
Log in to WHM using your root credentials.

Step 2:
Navigate to MultiPHP INI Editor.

Step 3:
Select the PHP version used by your website.

Step 4:
Increase the following PHP values:

Step 5:
Click Apply to save the changes.

Conclusion

Increasing the PHP upload size limit in WHM helps websites upload larger files without errors. After updating the required PHP values, test the file upload again from the website or application. Make sure the values are configured properly, especially post_max_size and memory_limit, to avoid upload failures or timeout issues.

LEAVE A COMMENT