How To Increase WP Memory Limit in WordPress with Cpanel 2024

If you are having the need to increase your WP Memory Limit of your website/ blog and you’re using Cpanel, this page is for you.

By default, the PHP or wordpress memory limit is set at 32MB. Before you can increase the WP Memory Limit of a site, you must first have the Cpanel login details of the the site, if you have those important information, visit your panel URL, it should look like this;

1. https://example.com:2083 or https://example.com:2082 (Replace the example.com with your domain name and extension) If you tried to access your panel with the URL and it fails, try contact your host, to help you with your correct Cpanel link and login details. If you have the details now you can proceed

2. After Logging into your panel, Open the File Manager Menu and check on the left for drop down of your site directories and select on the Public_html, if it’s a sub or additional domain, click on the domain name instead.

3. After opening the Public_html, if it’s not the root domain, open the domain name. You will find the following to be sure that you’re at the right place.

  • wp-admin
  • wp-content
  • wp-includes

if you find them, scroll them to look for the file with the name WP-CONFIG.PHP, select and click on edit to open file.

4. Copy the this Code

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

you can replace the 256M, with your desired size if you like. But 256M is the recommended size for any wordpress site.

5. Paste the code code below the * For developers: WordPress debugging mode. section, create a new line Before the line which looks like this define( ‘WP_DEBUG’, False ); or True. And paste the code, mentioned no.4

5. Save the file and check if the issue has been resolved.

N/B: if the above resolution fails, hire us now and we can get the issue solved for you as soon as possible.

Related articles

Case Studies

Educational E-commerce
Branding & visual design

Educational E-commerce Services & Blogging

An educational service providers wanted to launch a new e-commerce website that would allow customers to browse and purchase examination cards, pins and tokens...