How can you Increase the WordPress Memory Limit

788 views November 16, 2023 November 23, 2023 Chimp 0

To increase the memory limit of your WordPress, 1. Edit your wp-config.php file and enter something like: define(‘WP_MEMORY_LIMIT’, ’64M’); WordPress memory can be different to the server – you need to set this regardless of server memory settings Increasing memory allocated to PHP 2. If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 64M try 256M:

memory_limit = 256M ; Maximum amount of memory a script may consume (256MB)

3. If you don’t have access to PHP.ini try adding this to an .htaccess file:

php_value memory_limit 96M

4. If none of the above works then talk to your host. To have demo data as per live demo of theme, please make sure your server has following configurations in php.ini to avoid any issue while importing demo data. upload_max_filesize = 256M or Greater. memory_limit = 256M or Greater. max_input_vars above 3000 post_max_size above 250M max_execution_time above 300