Technology
How to Increase Maximum Upload File Size in cPanel
How to Increase Maximum Upload File Size in cPanel
When dealing with larger files, it's essential to understand how to adjust the maximum upload file size in cPanel. This guide covers three effective methods: using the MultiPHP INI Editor, editing the .htaccess file, and modifying the file directly.
Why Increase Upload File Size?
Every web application or file hosting service may require larger files to be uploaded, such as images, videos, or documents. If the default settings do not support these file sizes, you may encounter issues like failed uploads. Increasing the maximum upload file size can help bypass these limitations.
Step-by-Step Guide to Increase Upload File Size in cPanel
Method 1: Using cPanel's MultiPHP INI Editor
The MultiPHP INI Editor in cPanel is a straightforward method to adjust the upload limits. Here's a step-by-step guide:
Log in to your cPanel account.
Navigate to the Software section and click on MultiPHP INI Editor.
Select the domain for which you wish to change the settings.
Under the Settings tab, locate the following directives and set them to your desired values:
upload_max_filesize post_max_size max_ution_time max_input_timeFor example, you might set upload_max_filesize and post_max_size to 64M and max_ution_time and max_input_time to 300.
Click on the Apply button to save the changes.
Method 2: Editing the File Directly
If your cPanel account allows direct file editing, this method can be used:
Log in to your cPanel account and open File Manager.
Locate and edit the file. This file is typically found in the root directory of your website or in the public_html folder. If it doesn't exist, you can create one.
Add or modify the following lines:
upload_max_filesize 64M post_max_size 64M max_ution_time 300 max_input_time 300
Save the file and close the editor.
Method 3: Using the .htaccess File
If you've encountered restrictions on accessing the file, modifying the .htaccess file can still help:
Open File Manager in cPanel.
Locate and edit the .htaccess file. This is usually in the root directory of your website. If you don’t see it, ensure that hidden files are visible.
Add the following lines:
IfModule mod_php php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_ution_time 300 php_value max_input_time 300 /IfModule
Save the changes.
Verifying Changes
After adjusting the settings, it's crucial to verify whether the changes have been applied correctly:
Create a new file named in your public_html directory.
Add the following code to the file:
?php phpinfo(); ?
Access the file via your web browser (e.g., ).
Locate the upload_max_filesize and post_max_size settings in the phpinfo report to confirm they reflect your changes.
Important Notes
Before making any changes, always check with your hosting provider if there are any restrictions on file upload sizes. Additionally, it's important to remove the file after making changes for security reasons.
These methods should help you successfully increase the maximum upload file size in cPanel, ensuring smooth file uploads and a better user experience.