How to increase PHP memory limit

  • Post
    Forum Manager
    Keymaster

    How to increase php memory limit for my WordPress site?

Viewing 1 replies (of 1 total)
  • Replies
    Forum Manager
    Keymaster

    You can increase PHP memory limit by these two ways:

    Way 1: Create or Edit an existing PHP.INI file

    memory_limit = 512M
    upload_max_filesize = 512M
    post_max_size = 64M
    max_execution_time = 600
    max_input_vars = 5000
    suhosin.post.max_vars = 5000
    suhosin.request.max_vars = 5000

    Way 2: Add the below code to wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.’
    /** Memory Limit */
    define(‘WP_MEMORY_LIMIT’, ‘512M’);

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.