- You can increase php memory limit by modifying wp-config.php file in WordPress.
/** Memory Limit */ define('WP_MEMORY_LIMIT', '512M');
Paste the above code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.”
2. Create or Edit an existing php.ini or user.ini file. Add the below code to your php.ini file
memory_limit = 512M