Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting below errors despite setting memory_limit in php.ini to 64mb:

Fatal error: Out of memory (allocated 6291456) (tried to allocate 91284 bytes) in /home/favstayc/public_html/coverbuddy2/cake/libs/configure.php on line 1067

What could I change to fix this issue?

share|improve this question
Have you restarted your web server after you changed php.ini? – KJ-SRS Oct 4 '11 at 15:22

Allocate even more memory. Or try to find out why your CakePHP app (I guess) needs so much memory.

share|improve this answer

If you can spare the memory, up your max memory in the php.ini to 96m or 128m. Ensure that you leave enough memory for current server processes to continue to serve pages. If you're running Apache, that will require you to take a look at a typical process memory usage (which is easily accomplished with top, ps or any of the myriad of tools.

Multiply the amount of memory each process seems to use, and then scale the server by manipulating the data in the server (I'll assume Apache) configuration. Apache has a great page on scaling to tune performance here.

Combined, you'll likely find that those will keep your server alive long enough to diagnose the problem as a configuration or a PHP script problem, at which point you'll have to ask a more direct question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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