How to Increase the WordPress Memory Limit in cPanel

June 30, 2023 / WordPress

In this article, we will explain how to increase the WordPress memory limit in cPanel.

The memory limit is set by default to 32MB, which might not be enough for your website. However, there are many other methods to increase it.

Here, you can modify the .htaccess or wp-config.php file, set it using the cPanel or upgrade your web hosting plans.

Follow these steps to increase the WordPress memory limit in cPanel:

  1. Log into your “cPanel Account”.
    cPanel Account
  2. Search for the “Files” section, click on the “File Manager”.
    File Manager
  3. Now, select the “public_html”.
    Public_html
  4. Click on the .htaccess file.
    .htaccess
  5. Right-click on the file and select “Edit”.
    Edit
  6. Add the following code
    php_value memory_limit 256M
    Code
  7. “Save” the file.

In this way, you can increase the WordPress memory limit in cPanel. For more information on cPanel, visit our knowledge base section.

If you need to increase the upload limit in phpMyAdmin, check out our guide on How to Increase the Upload Limit in phpMyAdmin

Spread the love