# APC with Nginx

**URL:** <https://www.ruby-forum.com/t/apc-with-nginx/222381>\
**Category:** NGINX\
**Created:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381 "2012-08-27T14:01:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381/1 "2012-08-27T14:01:27Z")

</div>

Hi,

I have installed APC in my server (CentOS) using ‘pecl install apc’;  
also  
nginx is there.  
How can configure APC for nginx?

Please help.

Posted at Nginx Forum:

> **[APC with Nginx](https://forum.nginx.org/read.php?2,230137,230137#msg-230137)**
>
> Hi, I have installed APC in my server (CentOS) using 'pecl install apc'; also nginx is there. How can configure APC for nginx? Please help.

---

<div class="post-metadata">

**Author:** ![iqbalmp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@iqbalmp](https://www.ruby-forum.com/u/iqbalmp)\
**Post date:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381/2 "2012-08-27T14:05:12Z")

</div>

It should be configured with PHP not nginx

---

<div class="post-metadata">

**Author:** ![iqbalmp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@iqbalmp](https://www.ruby-forum.com/u/iqbalmp)\
**Post date:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381/3 "2012-08-27T14:01:50Z")

</div>

## apc just for php, not for nginx. configure your php.ini file

blog: [http://chenxiaoyu.org](http://chenxiaoyu.org)

---

<div class="post-metadata">

**Author:** ![iqbalmp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@iqbalmp](https://www.ruby-forum.com/u/iqbalmp)\
**Post date:** [August 27, 2012, 3:08pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381/4 "2012-08-27T15:08:55Z")

</div>

Thank You Anoop A., smallfish,

I have done it through my php configuration.

Posted at Nginx Forum:

> **[Re: APC with Nginx](https://forum.nginx.org/read.php?2,230137,230146#msg-230146)**
>
> Hi, I have installed APC in my server (CentOS) using 'pecl install apc'; also nginx is there. How can configure APC for nginx? Please help.
