1. Home
  2. Hosting Management
  3. PHP Configuration
  4. How to Increase the PHP Memory Limit in cPanel

How to Increase the PHP Memory Limit in cPanel

There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the PHP Memory limit (memory_limit)

What is the memory_limit PHP setting?

The memory_limit is a setting managed through the PHP Options, which max the amount of memory a script may consume. This value should be set at least as big as post_max_size.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

How to Increase the PHP Memory Limit in cPanel

PHP Selector

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

1) Log into cPanel.
2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

3) Click on the Options link in the new window.

4) Here, you can locate the memory_limit and click on the value.


A dropdown menu or text input box will appear, allowing you to change the value as required. Check your script, plugin, or theme’s documentation (or an on-screen error message) to find the correct value.

5) Once you’ll do the change, the new value will be automatically updated. If the change was successful, you will see a green box with a message confirming that the change has been applied.

That’s all! Now you know how to increase the PHP Memory Limit in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

Updated on January 16, 2023

Was this article helpful?

Related Articles

Web hosting without headaches
Get 70% Off hosting plans + free domain & SSL!
👉 Start Saving


Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.