Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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:

<?php
phpinfo();
?>
share|improve this answer
add comment

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 (http://iuscommunity.org/) you can just install the php53u-* rpms, with php-fpm.

share|improve this answer
add comment

Your Answer

 
discard

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.