Skip to main content

to increase memory power in wordpress

To increase the memory limit in WordPress, you can edit the wp-config.php file by adding define('WP_MEMORY_LIMIT', '256M'); above the "That's all, stop editing!" line, or add php_value memory_limit 256M to your .htaccess file. You can also increase the limit through your hosting control panel or by contacting your hosting provider, who may have other methods available. 

Using wp-config.php
  1. Access your WordPress files via FTP or your hosting file manager.
  2. Locate and open the wp-config.php file in the root directory.
  3. Find the line that reads /* That's all, stop editing! Happy publishing. */.
  4. Right before this line, add the following code: define('WP_MEMORY_LIMIT', '256M');.
  5. Save the file. 

Using .htaccess
  1. Access your WordPress files and locate the .htaccess file in the root directory (you may need to enable "Show Hidden Files" in your file manager).
  2. Make a backup of the file before editing.
  3. Add the following line to the file: php_value memory_limit 256M.
  4. Save the file and upload it back to your server. 

Other methods
  • Hosting control panel: Log in to your hosting account and find the PHP settings (e.g., MultiPHP INI Editor in cPanel or PHP Configuration in hPanel). Change the memory_limit there and save your changes.
  • Contact your hosting provider: If the above methods don't work, your host may have specific instructions or can change the setting for you.
  • Upgrade your hosting plan: In some cases, your current hosting plan may have a hard limit on memory, and an upgrade might be necessary to increase it further.