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 looking for some wisdom on configuring APC on a LAMP system.

Links to good reference material would be helpful as well.

share|improve this question
what is "APC" in this context? – warren Aug 31 '11 at 0:35
Probably refers to Alternative PHP Cache 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.

share|improve this answer

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.

share|improve this answer

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.

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.