1

Considering that I run a low memory VPS, should I configure Apache to use mod_fcgi, PHP APC or both? As I understand it, the APC will not be shared between processes so I wonder what would produce the best result on busy sites: mod_fcgi, APC or a combination?

2

You should use both fcgi and APC -- they don't do the same thing at all. But 512MB of RAM is not enough for a busy site.

  • I'm aware of the difference, but I wonder if the resource overhead of running APC+fcgi is worth it compared to APC+mod_php or only fcgi – grm Mar 10 '11 at 8:15
  • APC+fcgi will use less resources than APC+mod_php, because Apache won't have to load PHP into memory for serving static content like images and stylesheets. (I'm assuming you're using the Apache prefork MPM, since while worker will save memory, it may well fall over from time to time if you have any non-threadsafe code). – Mike Scott Mar 10 '11 at 8:23

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.