• Resolved Tim Burkart

    (@bigmoxy)


    Hi,

    My site’s server has PHP memory limit set to 512M. Will that override WordPress default memory limit of 40M? Do I have to set WP_MEMORY_LIMIT in wp-config?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes. You need to tell WP how much of the memory allowed by your hosting it’s able to use.

    Thread Starter Tim Burkart

    (@bigmoxy)

    Great, thank you @sterndata !!

    Hi, @bigmoxy

    If your server’s PHP memory limit is set to 512M, that will override the default memory limit of 40M set in WordPress. In this case, you will not need to set the WP_MEMORY_LIMITconstant in the wp-config.php file, as the higher limit set on the server will take precedence.
    However, it’s good practice to also set the value of WP_MEMORY_LIMIT in the wp-config.php file as a fail-safe in case the server’s memory limit is lowered at some point in the future. This way, you can ensure that WordPress has enough memory to run smoothly, even if the server’s limit is changed.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP memory limit question’ is closed to new replies.