Increase wordpress memory limit cpanel

In order to increase WordPress memory limit follow these steps:

1. Go to cPanel > Files section > File manager menu:

2. Navigate to the root folder of your domain [by default, it is public_html for the main domain and addondomain.tld for the addon domains]. Select wp-config.php file and click Edit:

Add the following code right before the /* That's all, stop editing! Happy blogging. */' line:

define[ 'WP_MEMORY_LIMIT', '512M' ];

where 512 is the memory limit you want to set:


NOTE:
it is also possible to change WP_MEMORY_LIMIT by going to wp-includes folder of the installation and editing default-constants.php file.

That's it!

Need any help? Contact our HelpDesk

  • Created September 18, 2017
  • Category WordPress Troubleshooting

If you are experiencing Memory Exhausted errors on your WordPress installation, it’s usually due to a plugin, theme or other script exceeding the default allocated memory size limit.

The solution is to increase your PHP Memory limit. HostPapa VPS users can adjust the memory limit by making a change to the WordPress wp-config.php file.

Log in to your HostPapa Dashboard and in the top navigation menu, select My cPanel.

Now select File Manager.

Locate the wp-config.php file in your WordPress folder. Right click the file and select Edit.

Now add the following code, just before the line that says ‘That’s all, stop editing! Happy blogging.’

define[ 'WP_MEMORY_LIMIT', '256M' ];

Save the file, and head back to WordPress – the memory error should now be resolved.

If your WordPress installation is running on a HostPapa shared/reseller service, you will need to resolve the issue a different way.

In your cPanel, click Software > Select PHP Version.

Now click Switch to PHP options.

Find and click the memory_limit setting, which allows you to edit the option. Use the dropdown menu to select the new limit. Click Apply, then Save.

For more help, or to ask a question, please open a support ticket from your HostPapa Dashboard. Follow this link to learn how.

How do I increase WordPress cPanel memory limit?

In your cPanel, click Software > Select PHP Version. Now click Switch to PHP options. Find and click the memory_limit setting, which allows you to edit the option. Use the dropdown menu to select the new limit.

How do I increase memory size in WordPress?

Here's what you need to do:.
Locate or find your php. ini file. ... .
Use your favorite editor to open and edit your php. ini file..
Look for the line that says 'memory limit = 32M'..
Change the 32M or some other number to the desired limit [e.g. 256M or 512M]..
Restart your localhost or server after saving your changes..

How do I check my WordPress memory limit?

If you're running WordPress 5.2 or above, you can use the Site Health tool to check what the current PHP memory limit is on your site. In your WordPress dashboard, go to “Tools” → “Site Health” → “Info” and scroll down to the server section. Here you can see that the PHP memory limit is on your server.

How do I increase PHP memory limit in managed WordPress?

php file..
Access files in your Managed WordPress account..
Locate the file wp-config. php in the root directory or folder..
Double-click the wp-config. ... .
Select Edit..
Find the line /* That's all, stop editing! ... .
Right above the line in step five, add this code: define['WP_MEMORY_LIMIT', '256M'];.
Select Save..

Chủ Đề