Knowledgebase

How to Increase Memory Limit

  • 0

How to Increase PHP Memory Limit in cPanel

 

Increasing the PHP memory limit in cPanel helps improve website performance and prevents memory exhausted errors. You can easily increase the memory allocation using the PHP Selector options available in cPanel by following the simple steps below.

 

Step 1: Login to cPanel from Client Area

 

First, login to your client area account.

After logging in:

  1. Go to Services
  2. Click on My Services
  3. Select your active hosting service
  4. Click on Login to cPanel

 

 

 

Step 2: Open the “Select PHP Version” Option

 

After logging into cPanel:

  1. Scroll down to the Software section.

 

 

 

  2. Click on Select PHP Version.

 

 

Step 3: Open PHP Options

 

Inside the PHP Selector page:

  1. Click on the Options tab.
  2. You will see different PHP configuration settings.

 

 

 

Step 4: Find the memory_limit Setting

 

Look for the option called:

memory_limit

This controls how much memory PHP scripts can use on your hosting account.

Common values include:

  • 128M
  • 256M
  • 512M

 

 

 

 

Step 5: Increase the Memory Limit

 

  1. Click on the current value beside memory_limit.
  2. Select a higher value such as 256M or 512M.

 

 

Step 6: Verify the Changes

 

After updating the value:

  1. Refresh the page.
  2. Confirm that the new memory limit is displayed.

Your PHP memory limit has now been increased successfully.

 

 

 

 

Why Increase PHP Memory Limit?

 

Increasing the PHP memory limit can help fix issues like:

  • Website loading errors
  • WordPress memory exhausted errors
  • Plugin installation failures
  • Slow website performance
  • Large import/export problems

 

Conclusion

 

Increasing the PHP memory limit in cPanel is a simple process that helps improve website performance and prevents memory-related errors. By using the PHP Selector options in cPanel, you can quickly increase the memory allocation for your website.


Was this answer helpful?