x
 
Create New Page
 View Previous Changes    ( Last updated by Sue Crocker )

HowTo Determine Memory Limits

Question

How can I determine how much memory is allocated to PHP?

Answer

If you are able to login to your EE Control Panel:

  1. In EE 2.x, navigate to Tools > Utilities > PHP Info. In EE 1.x, navigate to Admin > Utilities > PHP Info.
  2. Search the page for ‘memory_limit’
  3. The value shown in the “Local” column is the memory limit you are working with.  If no Local value is set, then the Master value is your memory limit.

If you are NOT able to access your EE Control Panel:

  1. Using a text editor, create a new file containing only the following single line:

<?php phpinfo(); ?> 

  2. Save the file as ‘phpinfo.php’ and upload it to a publicly accessible directory on your server
  3. Point your browser to the location of the file, e.g. http://yoursite.com/phpinfo.php
  4. Search the page for ‘memory_limit’
  5. The value shown in the “Local” column is the memory limit you are working with.  If no Local value is set, then the Master value is your memory limit.
  6. Remove the phpinfo.php file from your server, as leaving it publicly accessible is not recommended.

HowTo Override Memory Limitations

Category:PHPInfo
Category:Troubleshooting
Category:EE2
Category:EE1