How to Increase WordPress Upload File Size Limit

Guide for safely increasing WordPress file upload size limits using cPanel's CloudLinux PHP Selector, with best practices and troubleshooting tips.

How to Increase WordPress Upload File Size Limit

Overview

WordPress has default file upload size limits that may prevent uploading large files like high-resolution images, videos, or plugins. This guide explains how to safely increase these limits using cPanel's CloudLinux PHP Selector.

Prerequisites

  • โœ”๏ธ cPanel account access
  • โœ”๏ธ CloudLinux PHP Selector (included with all WPCloud plans)

Step-by-Step Instructions

1. Access PHP Selector

  1. Log in to cPanel
  1. Scroll to "SOFTWARE" section
  1. Click "Select PHP Version"

2. Modify Upload Settings

  1. Click the "Options" tab
  1. Locate these critical settings:
      • upload_max_filesize: Maximum file upload size
      • post_max_size: Maximum POST request size

3. Adjust Values

  1. Check the boxes next to both settings
  1. Set new values (example: "64M" for 64 MB)
  1. Ensure post_max_size is equal to or larger than upload_max_filesize
๐Ÿ’ก Tip: Common values:

Important Notes

Best Practices

  • โœ”๏ธ Only increase to necessary size
  • โœ”๏ธ Consider server resources
  • โœ”๏ธ Monitor available disk space

Common Issues

  • โš ๏ธ Plugin-specific limitations
  • โš ๏ธ Theme upload restrictions
  • โš ๏ธ Server-side timeouts

Troubleshooting

If Upload Still Fails

  1. Check .htaccess file for conflicting directives
  1. Verify plugin upload settings
  1. Ensure sufficient disk space

Common Error Messages

  • "The uploaded file exceeds the upload_max_filesize directive"
  • "The uploaded file exceeds the post_max_size directive"

Additional Considerations

Performance Impact

  • Larger uploads use more server resources
  • May affect concurrent uploads
  • Consider using media optimization

Need Help?

Contact our support team:

Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿคฉ

Last updated on November 20, 2024