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
9
votes
1 answer
5.5GB written daily to 1.2GB root volume - 4 times previous levels
Problem:
I recently revamped one of my servers, it was tested prior to use, and functions well, however, a few days ago, I noticed approximately 4 times the usual amount of writes to the root volume. This is not a performance issue - the server runs…
cyberx86
- 20,620
- 1
- 60
- 80
8
votes
4 answers
Apc, xcache or eAccelerator? What should I use for Wordpress?
I'm trying to configure a server for a Wordpress site. What should I use for opcode caching? APC, xcache or eAccelerator?
THpubs
- 1,615
- 7
- 26
- 43
6
votes
2 answers
Error installing APC in apache2 VPS with php-5.5.1
When I install APC:
pecl install apc
I'm getting this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible…
Manolo
- 512
- 2
- 8
- 22
6
votes
1 answer
PHP/APC fatal error, apc_mmap: mmap failed
I'm seeing some intermittent CPU usage spikes to 100%, sort of correlated to these log entries:
[27-Feb-2012 13:29:29] PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in Unknown on line 0
[27-Feb-2012 13:29:30] PHP Fatal error: PHP Startup:…
Sudowned
- 288
- 1
- 3
- 13
6
votes
3 answers
Can I optimize these APC settings more?
I would like to optimize APC some more but I am not sure where I could do something. First here is the screenshot after one week of running with the current configuration:
I have now the following points that I am unsure of:
Do I see it correctly…
Raffael Luthiger
- 2,011
- 2
- 17
- 26
5
votes
0 answers
Apache + Php-FPM + APC : mode_deflate not compressing HTML output
I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC
The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts.
In my .htaccess I have:
AddOutputFilterByType DEFLATE text/html…
Ox3
- 151
- 4
5
votes
2 answers
Graceful upgrade from php53u to php54
We are running a CentOS 6 node using iuscommunity repo, and want to upgrade previously installed php53u to php54.
However, this introduces a dependency conflict between php53u & php54. Does anyone have idea for this problem?
--> Running transaction…
sparanoid
- 205
- 3
- 7
5
votes
1 answer
Why is this APC installation failing so badly?
I have multiple instances of APC running on my server with similar configurations (albeit with different cache sizes. However, one of the instances is performing extremely poorly, and I have no idea why (100% cache fragmentation, high miss…
Matt
- 150
- 4
5
votes
3 answers
PHP APC Accelerator completely breaks Apache2 on Windows?
My local development configuration:
Apache 2.2.21 VC9 downloaded from Apache Lounge (as suggested at PHP For Windows website. Manual installation as service.
PHP 5.3.8 VC9 x86 Thread Safe, installed manually from the zip file.
PHP APC…
gremo
- 325
- 4
- 20
4
votes
1 answer
APC and "apc.gc_ttl" :: How Low is Too Low?
I currently have my apc.gc_ttl set to 600 to help keep fragmentation down.
Since apc.gc_ttl just sets the time on cache for garbage collection, I don't see any harm in keeping it this low.
However, I'm new to APC, and have seen many configurations…
tacotuesday
- 1,349
- 1
- 14
- 26
4
votes
2 answers
Getting APC Fragmentation to a Minimum
After weeks of messing around in my setup I finally managed to get APC to work with Mod_Ruid2 enabled in WHM and setting DSO as PHP-handler. I own a XEN VPS with 2 GB RAM and 4 CPU-cores on which I run 4 Wordpress sites - of which 2 are big,…
Loki
- 61
- 1
- 6
4
votes
3 answers
PHP-FPM and APC for shared hosting?
We are looking into finding a way to get APC to only create one cache per account / site. This can be done with Fastcgi (last update 2006…) but with Fastcgid APC will have to create multiple caches for multiple processes run by the same account.
To…
Tiffany Walker
- 6,541
- 13
- 53
- 77
3
votes
1 answer
PECL APC install --- ERROR: 'make' failed
I get the following error when running sudo pecl install apc.
/var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update':
/var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this…
pufAmuf
- 105
- 1
- 3
- 14
3
votes
1 answer
APCu and APC setting unclear
Please help me to understand where is difference between APC and APCu lies. While inspecting CentOS web-server (set up not by me) found that it has APCu 4.0.2 installed and phpinfo(); reports that APC Emulated.
It was bit confusing, anyway tried to…
Demontager
- 73
- 1
- 2
- 8
3
votes
3 answers
Caching PHP pages, Varnish, nginx, other?
I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages.
These PHP pages are querying a MYSQL database which does not change often at all - once a week?.
I am looking to do a fair amount of…
Coffeee
- 41
- 2