View Categories

How to increase PHP memory limit in WordPress

Sometimes you may encounter an issue where you’ll see that the Elementor widget panel is not getting loaded properly.

It often happens due to server issues. If your server configuration is low, then you will need to upgrade the server configuration.

Especially you will have to increase the PHP memory limit and max execution time.

You can increase or upgrade the PHP memory limit in 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 the wp-config.php file, just before the line that says “That’s all, stop editing! Happy blogging.”

/* Memory Limit */
define( ‘WP_MEMORY_LIMIT’, ‘512M’ );

Was this helpful?

Good job! Please give your positive feedback

How could we improve this post? Please Help us.

Scroll to Top