Do I have an efficient APC Setup?

Posted by Gaia on Server Fault See other posts from Server Fault or by Gaia
Published on 2012-11-05T01:32:36Z Indexed on 2012/11/05 5:03 UTC
Read the original article Hit count: 549

Filed under:
|
|
|
|

Regarding my particular APC setup:

APC 3.1.9
PHP 5.3.3 via fCGI
Apache 2.2.15
CentOS 6.3

1) Is it setup properly to minimize overall memory usage?

/etc/php.d/apc.ini has only one line: "apc.cache_by_default=0"

Each domain for which I want to turn on APC has all the apropriate APC configurations in its own php.ini.

2) I would like to keep only one copy of apc.php that can be accessed via any of the vhosts on the server. What's the recommended way to do this? It seems that apc.php doesn't play well with apache Alias directive. apc.php only exists is on one of the vhosts, is set to 644 and it doesn't seem to matter who owns it: if I try to access it via an alias I get only gibberish.

© Server Fault or respective owner

Related posts about apache2

Related posts about php