How to adjust php memory_limit

You may modify php memory_limit as desired from within your cPanel account.  Here's how:

1) Log into cPanel
2) Click on the PHP Variables Manager:



3) Within the PHP Variables Manager, you will see a listing of all of the folders in your account.  You may browse to the appropriate directory by clicking on the folder icon.






4) When you see the directory you wish to change, click on the directory name:
  • If you wish to set the PHP variables for your entire website, click on the "public_html" folder
  • If you wish to set the PHP variables for a particular folder within your site, click on the folder name




5) Type "memory_limit" into the field, then click on add:




6)  Type the appropriate limit ("64M" for example) into the field, then click to save the changes:





7)  The system will modify the php.ini file accordingly.  Click to return to the PHP Variables Manager:






  • Email, SSL
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Do you offer web hosting with PHP4 or PHP5?

PHP4 has reached an "end of life" status with the developers and as such Total Server Solutions...

What version of PHP do I have?

This can be found in your cpanel on the left column near where the server status link is. You can...

Can I run PHP scripts anywhere on my hosting account?

Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your...

Can I use short tags in my PHP scripts?

Yes, we have installed PHP to support short tags, so you can use this feature in your PHP scripts.

What is PHP?

PHP is a server-side, cross-platform, HTML embedded scripting language. It has a syntax familiar...