Alternative PHP Cache is a free, open source framework that caches the output of the PHP bytecode compiler in shared memory.
Questions tagged [alternative-php-cache]
128 questions
3
votes
1 answer
How to monitor multiple sites using one copy of apc.php?
Regarding my particular APC setup:
APC 3.1.9
PHP 5.3.3/fCGI/SuEXEC
Apache 2.2.15
CentOS 6.3
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…

Gaia
- 1,855
- 5
- 34
- 60
3
votes
2 answers
What does apc.mmap_file_mask really do?
I want to use APC in a shared environment, but the main problem is of course, opcode sharing.
To overcome this, I've thought about using different apc.mmap_file_mask for each user (they're chrooted through php-fpm), so the "file" created by APC…

Alessio Periloso
- 198
- 2
- 10
3
votes
1 answer
APC Not Enabled in Apache
I know this questions has been beat to death, but I've read almost all the responses and it hasn't solved my issue. I installed APC (no noted errors), I told PHP.ini to enable it and I made sure I am running PHP in FastCGI with SuExec turned…

gamerzfuse
- 163
- 1
- 7
3
votes
1 answer
APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC
AWS EC2 Small instance, Apache 2 running WordPress and W3TC. Within an hour, my APC fragmentation hits 100%.
My APC settings are:
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 100M
apc.optimization = 0
apc.num_files_hint =…

two7s_clash
- 215
- 1
- 4
- 14
3
votes
2 answers
APC keeps crashing
We're running PHP 5.3.8 with APC 3.1.9 and are using opcode cache as well as the user cache. Currently we are experiencing regular crashes when cache size increases. It looks like some kind of memory leak in APC, because the values in Cached Files…

Dylan
- 71
- 5
3
votes
2 answers
When does APC allocate memory?
If I set apc.shm_size = 64M, will 64M of memory be allocated by APC when it starts or does it get allocated in chunks as it is needed?

Joe Lencioni
- 131
- 4
2
votes
1 answer
PHP-FPM TCP connections not terminating in time
I'm serving Wordpress pages via nginx/PHP5-FPM using APC caching (through the W3 Total Cache plugin). Nginx communicates with PHP-FPM via TCP sockets on port 9000. I've adjusted the number of max connections via sysctl to be 1024. I've set both…

Ansari
- 176
- 5
2
votes
1 answer
How does PHP APC shared memory expiration works?
I am using the APC and see I still have 25MB of free memory.
However, in the Cache full count, I see I have 8 already.
So, why that happens? And if my understanding is: APC is not a LRU cache, so why I still have to free memory as I have reached the…

Ryan
- 5,831
- 24
- 72
- 91
2
votes
2 answers
php crashes with no core file and this message : apc_mmap failed
Description of the problem
Regularly, cron php processes crash on our production server, which result in mails with the following body :
PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in Unknown on line 0
Segmentation fault (core…

greg0ire
- 316
- 1
- 7
- 26
2
votes
0 answers
PHP APC cannot increase cache above 32m
apc.shm_size I set it to 128M I have also try 128 (without M)
But It always 32M :(
/proc/sys/kernal/shmmax is set to 134217728

lfgmMM
- 21
- 1
2
votes
1 answer
Unable to install php5.5 apcu module on Debian 6.0 server
Since APC is not supported by PHP 5.5 as an OP code cache I read that I can still use APC for user data which sounds good for me. It's called APCu and it should be compatible with the old APC.
Unfortunatelly, I'm not able to install it in any way.…

martin
- 355
- 1
- 7
- 15
2
votes
1 answer
Installing APC on Centos 6 package dependency issues - Which direction should I proceed
I have a CentOS 6.4 x32 VPS running NGINX and Drupal 7. To improve response I would like to install and configure APC. To do this my first attempt was to install it using PECL. To start I fired this command
yum install php-pear php-devel…

sridhar pandurangiah
- 763
- 2
- 11
- 29
2
votes
3 answers
Debian: can not install php5-suhosin and php5-apc
Just ordered a new Debian server and for some reason can not install
php5-suhosin and php5-apc. Any ideas?
apt-get install php5-suhosin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-suhosin is…

user189078
- 225
- 2
- 4
- 7
2
votes
2 answers
Apache restart needed after php code change
When I change php code of an application I need to restart apache to make the new code effective.
$ sudo apachectl -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
itk.c
http_core.c
mod_so.c
It is a pretty stock Ubuntu…

Martijn de Munnik
- 123
- 1
- 1
- 4
2
votes
1 answer
how to correctly clear php apc cache with capistrano
we are using capistrano to deploy our PHP application. and php-apc is enabled on the production server with apc.stat = 0. In capistrano config there is a rule to clear apc cache after deploy:update :
after "deploy:update", "clear_apc_cache"
the…

Mathieu
- 73
- 8