1

Of the various methods to increase the PHP memory limit, the only one I can use for a certain site is ini_set('memory_limit', 'XXXM'); in settings.php.

This value does not appear to change the memory_limit shown in phpinfo(). However, I know it is actually being modified because the site breaks without it.

Is there another way to view the current memory limit OR the actual memory limit ceiling?

3
  • 3
    You are probably calling phpinfo() before settings.php. What if you use the built-in phpinfo() linked in the Status Report? /admin/reports/status/php
    – 4uk4
    Apr 28, 2022 at 14:50
  • 2
    Also, some hosts may not allow you to change it above a certain amount.
    – Jaypan
    Apr 28, 2022 at 15:02
  • @4uk4 that's a great comment, can you pls put it as proper answer so I can tick it etc.?
    – james6848
    Apr 28, 2022 at 18:27

1 Answer 1

3

You are probably calling phpinfo() before settings.php. What if you use the built-in phpinfo() linked in the Status Report?

http://www.example.com/admin/reports/status/php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.