Increasing PHP Memory limit

For Shared and Reseller customers you can easily do this in cPanel by taking the following steps:

  • Log into your cPanel account
  • Under the “Software / Services” section, click on “Select PHP version”
  • On the right hand side, click the link that says “Switch To PHP Options”.
    • If this says “Switch To PHP Extensions” then you are already in the right spot
  • Click the gray setting next to the following option:
    • “memory_limit” – A drop down will appear and allow you to change the memory allowance per PHP process.
  • Click “Save”

For VPS / Dedicated customers:

  • Log into WHM as root.
  • Click on “PHP Configuration” under the “Service Configuration” menu
  • Fill in the circle next to “Advanced Mode”
  • Scroll down and look for “memory_limit”.
    • You can change this variable to anything you want however you should never exceed the amount of your server. In most cases, 128M will be fine.
  • Click “Save” at the bottom and make sure to restart Apache by clicking “HTTP Server (Apache)” in the left menu under “Restart Services”.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Adding an Add-on Domain in cPanel

Your account may include the ability to host multiple websites depending on your hosting package....

Changing your File Upload Size

Changing the file upload size can be done by following the steps provided below:   1. Log into...

Enable or Disable statistics(Awstats, Webalizer, Analog) from cPanel

Log into cPanelSelect the "Metrics Editor" icon under the Metrics section: Once in the Metrics...

My cPanel won't load or keeps logging me out after enabling Cloudflare

Symptom:You try to access your cPanel behind Cloudflare and are finding that on the first page...