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'm running a PHP script on a Nginx server. I've installed APC but I'm not sure whether it's working with Nginx or not

My server is CentOS with cPanel. I have full control and root access. What should I do to integrate APC with Nginx to enable running PHP scripts?

share|improve this question

APC (advanced php cache) works with PHP, not Nginx.

You may know from phpinfo script, that apc extension is used; specifically, save this code as a .php file and view it through the web:

share|improve this answer

to get php and apc to work, all you need to do is install the php5-apc rpm. I'm not sure how cPanel works, but if you can add the IUS repository ( you can just install the php53u-* rpms, with php-fpm.

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.