How to Increase PHP Resource Limits (memory_limit, upload_max_filesize) via cPanel.

June 07, 2026 Web Hosting and Control Panels (cPanel)

When uploading large files, installing premium themes, or running heavy plugins (like WooCommerce) on WordPress, you may encounter common errors such as:

  • "The uploaded file exceeds the upload_max_filesize directive in php.ini"
  • "Fatal error: Allowed memory size of bytes exhausted"
  • "Maximum execution time of 30 seconds exceeded"

These limitations are set by default to protect server performance, but you can easily increase these limits directly from your CeylonServers cPanel using two methods.

Using the MultiPHP INI Editor (Most Common)

This is the standard tool available on most modern cPanel layouts to modify php.ini variables instantly.

  • Log in to your cPanel dashboard directly.
  • Scroll down to the Software section or search for "MultiPHP INI Editor" in the top search bar.

  • Under the Basic Mode tab, click the dropdown menu that says "Select a location" and choose your specific domain name.
  • Locate the following configurations and increase their values based on your requirements:
  1. memory_limit: Set this to 256M or 512M (This controls the maximum memory a single script can use).
  2. upload_max_filesize: Set this to 256M or 512M (This fixes the large file upload block).
  3. post_max_size: Set this to match or be slightly higher than your upload size (e.g., 256M or 512M).
  4. max_execution_time: Change this to 300 or 600 (Seconds a script is allowed to run before timing out).

  • Scroll to the bottom and click the blue "Apply" button. A green success message will appear at the top right.

A Quick Checklist for Best Performance:

  • M = Megabytes: Always ensure you include the letter "M" after the number (e.g., 256M and not just 256).
  • The Golden Rule: Keep your limits balanced. For instance, upload_max_filesize should never be larger than post_max_size.

        Correct Configuration Setup: memory_limit: 512M âž” post_max_size: 256M âž” upload_max_filesize: 256M

Need Technical Support? If you have applied these changes but your website still reports the old values, or if your script requires values higher than the server-allowed maximums, please click "Open Ticket" from the top menu, and our systems team will increase them manually for you!