Reply To: How to increase PHP memory limit

    Forum Manager

    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 = 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’);