Search Our Database

How to Adjust Maximum File Upload Size for All Websites using MultiPHP INI Editor in cPanel

Last updated on |
by

Introduction

This Knowledge Base article provides a concise, step-by-step guide on How to Adjust Maximum File Upload Size for All Websites using MultiPHP INI Editor in cPanel. The upload_max_filesize directive sets the maximum size of an uploaded file that PHP will accept. By applying this setting to your Home Directory, you can configure file upload limits across all domains under your hosting account, which is essential for websites that allow users to upload images, videos, documents, or other large files.

Prerequisite

  • Access to your cPanel login page.

Step-by-Step Guide

Step 1: Log in to cPanel

  • Access and log in to your cPanel account using your username and password.

Step 2: Open MultiPHP INI Editor

  • In the Home page, under Software, click MultiPHP INI Editor.

Step 3: Access Basic Mode

  • The interface will open in the Basic Mode tab by default.
  • If you are in Editor Mode, click the Basic Mode tab at the top of the interface.

Step 4: Select Home Directory

  • From the Configure PHP INI basic settings dropdown menu, select Home Directory.

⚠️ Important Note: Selecting Home Directory will apply PHP configuration changes to all domains.

 

Step 5: Adjust Upload Max Filesize

  • Locate the upload_max_filesize directive in the list of PHP directives.
  • Enter the desired maximum file size (e.g., 64M for 64 megabytes, 128M for 128 megabytes, 256M for 256 megabytes).
  • The default value is typically 2M.

⚠️ Important Note:

  • The post_max_size directive should be larger than upload_max_filesize.
  • If you increase upload_max_filesize, also increase post_max_size accordingly.

Step 6: Apply the Changes

  • Click the Apply button at the bottom of the page to apply the changes made.

Step 7: Verify the Changes

  • A successful message will pop up to confirm that the changes is applied successfully.
  • Alternatively, test uploading a large file to ensure it uploads successfully without errors.

⚠️ Important Note:

  • You may also need to adjust post_max_size and max_input_time directives to fully support large file uploads.
  • Additionally, your web server (Apache/Nginx) may have its own upload limits that need to be configured separately.

Conclusion

By following these steps, you can adjust maximum file upload size for all websites using MultiPHP INI Editor in cPanel. This ensures that your websites can accept larger file uploads from users without encountering size limit errors.

Should you encounter any issues or have any questions, our support team at IPSERVERONE is always here to assist you. Don’t hesitate to reach out to us at support@ipserverone.com for any help you need.