How do I increase the PHP memory limit?

Quick answerBeginnerUpdated

Short answer

Raise it in your PHP settings for the domain, or with a memory_limit line in a .user.ini file. Some directives are adjustable on shared hosting and some are fixed, so check the value with phpinfo() after changing it to confirm it applied.

Learn more

Not with Traxio yet? You can try this on a real server with our free PHP hosting trial: 30 days free with no card, then £0.99 a month.

All PHP questions · All questions and answers

Popular

Tip: press / to search from any pageSee all results