+92 308 5039935
Get a Free Quote
+92 308 5039935

Increasing the WordPress Memory Limit

Increasing the WordPress Memory Limit

There are several ways of increasing WordPress memory limit. You can increase the memory limit by your self or contact your hosting provider to do it for you. Lets Start!

Edit wp-config.php file:

Add following code to the very bottom of wp-config.php file, right before the line that says, “Happy Blogging”:

define('WP_MEMORY_LIMIT', '256M');

Edit php.ini file:

If you have access to your php.ini file, search for memory_limit and change it to 256M

memory_limit = 256M;

Create php.ini file:

If you dont have access to php.ini file then create a new text file and write this memory_limit = 256M; in it, save it and change the file name and extension to php.ini then upload it to your WordPress wp-admin folder.

Edit .htaccess file:

You can also increase the memory limit by adding following code into your .htaccess file

php_value memory_limit 256M

Contact Your Hosting Provider:

If you don’t feel comfortable trying the above methods, or the any of the above methods did not work for you, then you need to contact your hosting and ask them to increase your memory limit.

Hello, I am a web designer and developer working since 2013. I build WordPress themes, write and extend WordPress plugins, edit WordPress themes and plugins in accordance to customer needs and play games when free ;-)
Related Post