Skip to content

How to increase max upload limit in WordPress Website?

Increasing the WordPress upload limit in cPanel involves modifying a few settings to allow larger file uploads. Here’s a step-by-step guide to help you increase the upload limit for WordPress:

Step-by-Step Guide to Increase WordPress Upload Limit in cPanel

Section titled “Step-by-Step Guide to Increase WordPress Upload Limit in cPanel”
  1. Log In to cPanel: Open your web browser and navigate to your cPanel login page. Enter your credentials to log in.
  1. Navigate to Software Section: In the cPanel dashboard, locate the “Software” section.
  2. Click on MultiPHP INI Editor: This tool allows you to edit the PHP configuration for different domains.
  1. Select a Location: Choose the domain or home directory you want to configure.
  2. Update PHP Directives:
    • upload_max_filesize: Increase this value to the desired upload limit (e.g., 64M for 64 megabytes).
    • post_max_size: Ensure this value is equal to or larger than upload_max_filesize (e.g., 64M).
    • max_execution_time: Increase this value to allow more time for uploads (e.g., 300 seconds).
    • memory_limit: Increase this value if necessary (e.g., 128M).

Example settings:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
memory_limit = 128M
  1. Save Changes: After updating these values, save the changes.
  1. Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.
  1. Navigate to File Manager: In the cPanel dashboard, locate the “Files” section and click on “File Manager.”
  2. Open the Root Directory: Navigate to the root directory of your WordPress installation (usually public_html).
  1. Locate .htaccess File: Find the .htaccess file in the root directory.
  2. Edit .htaccess File: Right-click on the .htaccess file and select “Edit.”
  3. Add PHP Directives: Add the following lines to the .htaccess file to increase the upload limit:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
  1. Save Changes: Save the changes and close the editor.
  1. Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.
  1. Navigate to File Manager: In the cPanel dashboard, locate the “Files” section and click on “File Manager.”
  2. Open the Root Directory: Navigate to the root directory of your WordPress installation (usually public_html).
  1. Locate php.ini File: Check if a php.ini file already exists. If not, create a new one.
  2. Edit php.ini File: Right-click on the php.ini file and select “Edit.” If you created a new file, simply open it to edit.
  3. Add PHP Directives: Add the following lines to increase the upload limit:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
max_input_time = 300
  1. Save Changes: Save the changes and close the editor.
  1. Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.