Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Hosting Requirements

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Anyone using APC PHP Accelerator?


8 Posts   3051 Views


26 April 2011 at 10:36pm Community Member, 156 Posts

Hi All,

Just wanted to see if anyone is using APC on a live site and if it has any adverse effects on Silverstripe?

With other people reporting errors with xcache and SS email headers I thought it might be safer to ask first.



27 April 2011 at 7:40am (Last edited: 27 April 2011 7:41am), Forum Moderator, 1796 Posts

APC is so good it's going to be included in PHP6 (so I've heard) and it was recommend as the best one, also turn on mod_deflate too. Should mention it's been running on my server for months - nothing negative to report.


27 April 2011 at 3:09pm Community Member, 156 Posts

I have been using mod_deflate and htacces file caching rules which have helped overall site speed.

My concern has shifted lately with a site we host which is attracting upward of 3000 visits a day. This is putting a large amount of load on apache and I either need to look at putting them on their own vps or install something to help reduce the load.

Just to confirm, you are running APC on your server?


27 April 2011 at 8:00pm Forum Moderator, 1796 Posts

it's been running on my server for months - nothing negative to report


28 April 2011 at 1:15am Community Member, 156 Posts

I wasn't sure if you were talking about mod_deflate.

I installed APC and there is definately a great gain to be made using it.



14 August 2011 at 1:23am Community Member, 44 Posts

What kind of requests per_second are you guys seeing with APC installed?

I have APC installed on my Media Temple 3.5 dv server (1 GB RAM) with shared memory set to 100M. I also have partial caching in place (which I have tested and is working) with SS_Cache::pick_back_end set to use APC.

Using ap bench with a concurrency of 10, I am only seeing 6 to 7 requests pre second. I am new to server optimization, but isn't this really low?

Any thoughts on what I might be doing wrong or what I can do to increase my requests_per_second?


5 September 2011 at 11:37am Forum Moderator, 921 Posts

If you're in dev mode on the site, you can add ?debug_profile=1 to the URL, e.g. "".

This will give you a list of times it took to render page components. While it's not the best profiler around, it does give you a good indication what parts of the page template are slow, and from there you can apply [url=]partial caching[/url] where appropriate.

Hope that helps.



21 February 2012 at 12:43am Forum Moderator, 435 Posts

I use phpcache on IIS7.5