0

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?

1
  • Have you restarted your web server after you changed php.ini?
    – KJ-SRS
    Oct 4, 2011 at 15:22

2 Answers 2

1

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

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .