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- Access your WordPress files via FTP or your hosting file manager.
- Locate and open the
wp-config.phpfile in the root directory. - Find the line that reads
/* That's all, stop editing! Happy publishing. */. - Right before this line, add the following code:
define('WP_MEMORY_LIMIT', '256M');. - Save the file.
Using
.htaccess- Access your WordPress files and locate the
.htaccessfile in the root directory (you may need to enable "Show Hidden Files" in your file manager). - Make a backup of the file before editing.
- Add the following line to the file:
php_value memory_limit 256M. - 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_limitthere 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.