I am looking for some wisdom on configuring APC on a LAMP system.

Links to good reference material would be helpful as well.

  • what is "APC" in this context? – warren Aug 31 '11 at 0:35
  • Probably refers to Alternative PHP Cache php.net/manual/en/book.apc.php although my first thought was a UPS.. – Dana the Sane Aug 31 '11 at 0:55
  • Just nitpicking, but do you have a 64-bit OS or a 32-bit one with PAE kernel just to use that amount of RAM at all? – karatedog Aug 31 '11 at 1:05
  • I am using Ubuntu 10.04.3 64bit – Corey Aug 31 '11 at 2:40

I found two helpful articles.



I don't think that there are many hard and fast rules, will depend case by case. To start off, I would enable APC with the default settings, and see if there is enough shared memory allocated to store your compiled pages, and any other values you want to store. If you start running out, tweak and repeat.


Probably just about all of them.

It's impossible to give a more precise answer without a detailled understanding of the workload and the structure of the sites.

But even then tuning is as much an empirical art as a science - you need to have good systems in place for gather and analysing metrics then comparing models.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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