Questions tagged [apc]

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

963 questions
172
votes
19 answers

How to clear APC cache entries?

I need to clear all APC cache entries when I deploy a new version of the site. APC.php has a button for clearing all opcode caches, but I don't see buttons for clearing all User Entries, or all System Entries, or all Per-Directory Entries. Is it…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
165
votes
7 answers

Memcached vs APC which one should I choose?

I read this article: http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/ from way back when.. I want to get the best caching engine available so that my application is really fast. Of course I don't want to over-cache but I want to at…
Thomaschaaf
  • 17,847
  • 32
  • 94
  • 128
150
votes
27 answers

How to disable XDebug

I think that my server became slow since I installed XDebug. So, in order to test my hypothesis I want to disable XDebug completely. I've been searching for tutorials on how to do this but I can't find such information.
Beto Aveiga
  • 3,466
  • 4
  • 27
  • 39
133
votes
12 answers

What is causing "Unable to allocate memory for pool" in PHP?

I've occasionally run up against a server's memory allocation limit, particularly with a bloated application like Wordpress, but never encountered "Unable to allocate memory for pool" and having trouble tracking down any information. Does anyone…
jonathanatx
  • 1,603
  • 3
  • 12
  • 13
105
votes
12 answers

apc vs eaccelerator vs xcache

Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC, but APC is better maintained. Xcache is faster but the others have easier syntax. Anyone have recommendations on which to…
Galen
  • 29,976
  • 9
  • 71
  • 89
103
votes
14 answers

Is APC compatible with PHP 5.4 or PHP 5.5?

It doesn't seem like APC has been updated to coincide with the php 5.4 release (I wish they would have included APC in PHP core like originally planned). I can't seem to find any definitive answer to whether current APC works with php 5.4+. I…
Greywire
  • 1,493
  • 4
  • 13
  • 14
51
votes
6 answers

sudo pecl install apc returns error

I run the command: sudo pecl install apc The file gets downloaded, the configuration succeeds, then make is launched and I get the following error. /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory Is there a…
Nicolas de Fontenay
  • 2,170
  • 5
  • 26
  • 51
48
votes
5 answers

Apache 2.4 + PHP-FPM and Authorization headers

Summary: Apache 2.4's mod_proxy does not seem to be passing the Authorization headers to PHP-FPM. Is there any way to fix this? Long version: I am running a server with Apache 2.4 and PHP-FPM. I am using APC for both opcode caching and user…
CodeTwice
  • 2,926
  • 3
  • 18
  • 18
43
votes
1 answer

Difference between APC, APCu and Opcache?

I am running a web server with the following packages; php-apc 3.1.7-1 php5-fpm 5.3.10-1ubuntu3.10 However, i have built a new server on Ubuntu 14.04 and seems like php-apc is not available anymore. Therefore, APC was the lifeserver for my huge…
martyr
  • 591
  • 1
  • 5
  • 7
40
votes
4 answers

How to install apcu in windows

How can I install APCu in Windows? I found this. But I need a solution for Windows. I use PHP 5.5.6 (I have the XAMPP package).
kemal89
  • 931
  • 2
  • 8
  • 20
38
votes
5 answers

Why does PHP use opcode caches while Java compiles to bytecode files?

From my point of view, both PHP and Java have a similar structure. At first you write some high-level code, which then must be translated in a simpler code format to be executed by a VM. One difference is, that PHP works directly from the source…
erikbstack
  • 12,878
  • 21
  • 81
  • 115
36
votes
4 answers

Is there any compatible memory cache for PHP 7?

I would like to use PHP 7. However there seems to be no option for key-value memory caching. APC is discontinued. XCache will not be available for PHP 7 for some time. Is there an available alternative for PHP 7? Or is there a way to use PHP7's…
Frodik
  • 14,986
  • 23
  • 90
  • 141
31
votes
3 answers

APC -> APCu / OPCache, performance poor

I have an m3.xlarge EC2 instance that I updated to PHP 5.5.11 today. With this update, it overwrote php55-pecl-apc with php55-pecl-apcu. After reading and experimenting, my understanding is that APC has been replaced with OPCache, except for a key…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
31
votes
7 answers

pecl installs for previous php version

I've upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) version of PHP instead of version 5.4. PHP version: $ php -v PHP 5.4.17 (cli)…
Rene Terstegen
  • 7,911
  • 18
  • 52
  • 74
29
votes
2 answers

Anyone successfully serving high traffic with PHP 5.4.4 and APC 3.1.10?

Call to undefined method after upgrading to PHP 5.4.0 mentions a few APC bug-reports from March 2012. My concrete question is: Is PHP 5.4.4 (or thereabouts) stable in combination with APC 3.1.10 (released in April, but listed as "beta" rather than…
Frank Farmer
  • 38,246
  • 12
  • 71
  • 89
1
2 3
64 65