FAQ

Frequently Asked Questions

My allocated WordPress memory is too low. How do I increase it?

If your allocated WordPress memory is too low (we recommend having atleast 128MB allocated memory), then here’s how to increase it.

Please follow the steps below:

Step 1: Access the wp-config.php file

  1. Log in to your WordPress hosting account or connect to your server via FTP (File Transfer Protocol).
  2. Navigate to the root directory of your WordPress installation. This is usually the public_html or www folder.
  3. Look for the wp-config.php file. It is a vital file for WordPress configuration.

Step 2: Open the wp-config.php file

  1. Right-click on the wp-config.php file and choose “View/Edit” or download it to your local computer and open it with a text editor (e.g., Notepad, Sublime Text, or Visual Studio Code).

Step 3: Define the memory limit

  1. Inside the wp-config.php file, find the line that says:
    arduino
    /* That's all, stop editing! Happy publishing. */

    It is usually near the end of the file.

  2. Just above the line mentioned above, add the following code:
    php
    define('WP_MEMORY_LIMIT', '256M');

    This code sets the memory limit to 256 megabytes. You can change the value to your desired limit (e.g., 512M for 512 megabytes).

  3. Save the changes and close the wp-config.php file.

Step 4: Verify the new memory limit

  1. Log in to your WordPress admin dashboard.
  2. Go to “Tools” and select “Site Health.”
  3. Inside the Site Health screen, click on the “Info” tab.
  4. Look for the “Server” section and find the “PHP Max Memory Limit” value. It should reflect the new memory limit you set.

Congratulations! You have successfully increased the maximum memory limit in the wp-config.php file. This change allows WordPress to utilize more memory, which can be beneficial for memory-intensive plugins or themes. Remember to save a backup of the original wp-config.php file before making any modifications for safety purposes.

Tutorial for editing the wp-config.php file:

Editing wp-config.php

If you are using a shared hosting or you don’t want to do this by yourself, then you may ask your webhost to do this for you.

CodeRevolution Knowledge Base

Video tutorials