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”Method 1: Modify PHP Settings in cPanel
Section titled “Method 1: Modify PHP Settings in cPanel”Step 1: Access cPanel
Section titled “Step 1: Access cPanel”- Log In to cPanel: Open your web browser and navigate to your cPanel login page. Enter your credentials to log in.
Step 2: Go to the MultiPHP INI Editor
Section titled “Step 2: Go to the MultiPHP INI Editor”- Navigate to Software Section: In the cPanel dashboard, locate the “Software” section.
- Click on MultiPHP INI Editor: This tool allows you to edit the PHP configuration for different domains.
Step 3: Edit PHP Settings
Section titled “Step 3: Edit PHP Settings”- Select a Location: Choose the domain or home directory you want to configure.
- 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 = 64Mpost_max_size = 64Mmax_execution_time = 300memory_limit = 128M- Save Changes: After updating these values, save the changes.
Step 4: Verify Changes
Section titled “Step 4: Verify Changes”- Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.
Method 2: Edit the .htaccess File
Section titled “Method 2: Edit the .htaccess File”Step 1: Access File Manager in cPanel
Section titled “Step 1: Access File Manager in cPanel”- Navigate to File Manager: In the cPanel dashboard, locate the “Files” section and click on “File Manager.”
- Open the Root Directory: Navigate to the root directory of your WordPress installation (usually public_html).
Step 2: Edit .htaccess File
Section titled “Step 2: Edit .htaccess File”- Locate .htaccess File: Find the .htaccess file in the root directory.
- Edit .htaccess File: Right-click on the .htaccess file and select “Edit.”
- Add PHP Directives: Add the following lines to the .htaccess file to increase the upload limit:
php_value upload_max_filesize 64Mphp_value post_max_size 64Mphp_value max_execution_time 300php_value max_input_time 300- Save Changes: Save the changes and close the editor.
Step 3: Verify Changes
Section titled “Step 3: Verify Changes”- Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.
Method 3: Create or Edit a php.ini File
Section titled “Method 3: Create or Edit a php.ini File”Step 1: Access File Manager in cPanel
Section titled “Step 1: Access File Manager in cPanel”- Navigate to File Manager: In the cPanel dashboard, locate the “Files” section and click on “File Manager.”
- Open the Root Directory: Navigate to the root directory of your WordPress installation (usually public_html).
Step 2: Create or Edit php.ini File
Section titled “Step 2: Create or Edit php.ini File”- Locate php.ini File: Check if a php.ini file already exists. If not, create a new one.
- 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.
- Add PHP Directives: Add the following lines to increase the upload limit:
upload_max_filesize = 64Mpost_max_size = 64Mmax_execution_time = 300max_input_time = 300- Save Changes: Save the changes and close the editor.
Step 3: Verify Changes
Section titled “Step 3: Verify Changes”- Check WordPress: Log in to your WordPress admin dashboard, go to “Media” > “Add New,” and verify that the new upload limit is reflected.