PHP is an interpreted language, APC is made to cache the results of interpreting a script and reusing them in feature requests.

learn more… | top users | synonyms

0
votes
1answer
25 views

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. ...
0
votes
0answers
22 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 ...
-1
votes
1answer
108 views

How to enable PHP APC with Virtualmin

Is it possible to enable PHP APC in Virtualmin? If yes, how? (almost no information in foruns, official documentation, web, google..) Important: (this is the reason for this question) Virtualmin, ...
0
votes
1answer
28 views

Slow I/O due to APC

I have a vps running Ubuntu 10.04 with nginx as my webserver. I use APC for php caching and I noticed my server is doing lots of disk queries which resulted me having slower I/O. I have about +50 ...
0
votes
0answers
32 views

How to check if php-apc is running?

I've installed APC using 'pecl install apc'... apc sucessfully installed... I copied this file /local/lib/php/apc.php to my www directory, to see stats: But accessing this url I can see it's not ...
0
votes
1answer
92 views

Cent OS - MySQL Daemon failed to start [closed]

I'm running AWS micro instance with 0.615 GB Memory. I have APC running on it with 35 MB size max as default. Now I have restarted mysqld and it wont start. It has just stopped. I really need to get ...
0
votes
1answer
41 views

PHP Opcode cache that can detect identical files

I am currently using APC with PHP FPM to cache a few hundred Wordpress sites. With a 2gig cache everything works well but it isn't terribly efficient and the cache is always maxed out. If I have 200 ...
2
votes
1answer
107 views

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 ...
0
votes
1answer
40 views

APC and xCache memory configuration

In PHP xCache and APC, there are options that allows to set maximum memory. Do xCache and APC actually RESERVE the memory, or they just use it whenever they need to?
1
vote
1answer
31 views

PHP APC configuration - cache filling and being dumped every 5 minutes

We've just installed APC on our server, and after looking at the stats for APC it appears that APC's cache takes around 5 - 10 minutes to fill up, and is then completely emptied. Current settings ...
1
vote
2answers
2k views

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 ...
0
votes
2answers
150 views

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 ...
2
votes
1answer
465 views

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 : ...
0
votes
1answer
186 views

Installing APC on ubuntu

So I've got my server running Ubuntu with lampp (xampp for linux) running. I want to implement a file upload progress bar, so I am trying to install APC. (Please do not suggest alternative plugins) I ...
0
votes
0answers
78 views

How to pin-out what triggers segmentation fault on a heavy used LAMP

On a Linux system with apache2 are several vhosts served. Some weeks ago there was for the first time messages in /var/log/httpd/error_log like [Wed Jun 26 10:09:29 2013] [notice] child pid 9841 ...
0
votes
1answer
48 views

Any possible side effect to use APC on shared host? [closed]

I'm using a shared host for a CMS site. This shared host has an option to use "APC". I just tried this option on a test site as it can be enabled just by one click on my account page of the shared ...
1
vote
2answers
212 views

How to reduce I/O on EC2 micro instance running wordpress

I have been running a very small wordpress site on Amazon EC2 for about 2 months, using the free tier micro instance. I have been getting billed a few dollars each month for going over the disk I/O ...
0
votes
1answer
913 views

PHP APC - is 100% fragmentation a bad thing?

APC.PHP tells me: Uptime 2 days, 15 hours and 13 minutes File Upload Support 1 File Cache Information Cached Files 375 ( 53.5 MBytes) Hits 377684 Misses 376 Request Rate (hits, misses) 1.66 ...
0
votes
2answers
327 views

apc “open() /www/cache/xxx failed. no such file or directory” error

I think it's because APC because I use only APC system for cache. Here is the full log: 2013/04/23 19:15:05 [error] 539#0: *1305213 open() "/var/www/cache/e4ce8db565491cdcf27ab61a441xxxx" failed (2: ...
0
votes
1answer
142 views

php-fpm taking too much memory

I am using Nginx+PHP-FPM with php 5.3.6 and it was working well for weeks. A few days before I found out that most of the PHP-FPM children take 3MB but a few children are taking 700MB. The web ...
0
votes
1answer
197 views

I am unable to install php5-apc on my Ubuntu server

I am unable to install php5-apc. I don't seem to get any errors. root@applications-server-1:~# aptitude install php5-apc The following NEW packages will be installed: php5-apc{b} 0 packages ...
1
vote
1answer
854 views

upstream prematurely closed connection while reading response header from upstream, client

I'm using nginx and spawnf-cgi with apc and memcache enabled.I'm getting 502 bad gate way on browser and this error on error log. 2013/01/07 06:55:46 [error] 90799#0: *53 upstream prematurely closed ...
0
votes
1answer
72 views

Configure APC for maximum hit rate

I'm currently running php5 with APC, the latter with default configuration. However after setting up munin to monitor APC, I'm surprised by the results: apc.shm_size: 30 apc.gc_ttl: 3600 apc.ttl: 0 ...
2
votes
2answers
719 views

APC uptime 0 because of Fast

I have a VPS using Parallels/Plesk (11.0.9 Update #22, last updated at Oct 31, 2012 03:33 AM CentOS 6.3 (Final) x86_64) I have apache (CGI/FastCGI) installed and nginx as reverse proxy. Everything is ...
2
votes
1answer
225 views

open_basedir problems with APC and Symfony2

I'm currently setting up a shared staging environment for one of our applications, written in PHP5.3 and using the Symfony2 framework. If I only host a single instance of the application per server, ...
3
votes
1answer
204 views

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. ...
1
vote
1answer
2k views

PHP-APC is exceeding limit apc.shm_size often

I am implementing the apc on a shared server that currently has 1000 sites (using wordpress, moodle, etc.). I'm Looking for the admin page, and I see "Cache full count" is growing rapidly. I've tried ...
0
votes
0answers
132 views

APC 99% Misses on Filecache

I have installed APC Cache in an Ubuntu + Zend Server enviroment. But it seems the APC does not Cache any File or does not use the cached files. After some Requests: File Cache: Cached Files 419 ...
2
votes
2answers
399 views

APC setting - maximum apc.shm_size

Is there any limitation of the apc.shm_size? As i calculated im gonna need more or less 2 GB cache size, but if i set even 1 MB more then 1024MB, Apache wont start.
0
votes
1answer
175 views

apc.filters on Windows

I set up OwnCloud on my Windows Server 2008 box. I run my blog on the machine as well and I wanted to set up APC. My blog runs fine with APC running, but for some reason it causes a bunch of ...
0
votes
1answer
388 views

APC module causing strange error

When I run php -v I get: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: php_pcre_exec in Unknown on ...
3
votes
1answer
587 views

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, ...
3
votes
2answers
1k views

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 ...
1
vote
1answer
83 views

Will APC work with multiple versions of PHP

I have two versions of PHP running (5.2 & 5.3). I would like to know how to install two separate versions of APC for PHP, or is that even necessary? I can't find any info on alternative methods ...
1
vote
2answers
374 views

Optimize Apache - should I use APC / nginx?

I've read many posts regarding Apache optimization. While reading, two names repeated over and over again, nginx and php-apc. I've tried to understand which of them might be helpful for me, but i ...
1
vote
2answers
484 views

Using SuPHP on a VPS

I am running a site with a WordPress CMS. I tried to install W3 Total Cache to speed up the site files, but I didn't know which opcode to pick (I am on a VPS), so I put a support ticket in with my ...
0
votes
1answer
494 views

PHP-APC Installation

Trying to get my head around the way to install APC cache on PHP 5.3.13. That's a VPS with apache, configured preferably through whm/cpanel (although not only). I read a bunch of articles where it ...
3
votes
1answer
5k views

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 ...
0
votes
1answer
373 views

apc.stat causes 500 internal server error

When I turn off apc.stat it causes a 500 internal server error. I checked the apache error_log and it's something about: [Tue Jun 26 10:02:59 2012] [error] [client 127.0.0.1] PHP Warning: require(): ...
0
votes
1answer
454 views

Executed PHP files are stale unitl “touched” (Symlinked NFS mount as web root)

We have a PHP application that has 3 web servers (running Nginx and Apache). The web server's directory root are symlinked directories that point to an NFS mount. For example: web01 has an NFS mount ...
2
votes
1answer
254 views

Unable to install php-apc on Ubuntu 11.04

I've got Ubuntu 11.04 running on my Slicehost web server, and I'm trying to install php-apc? However, when trying to install with apt-get install php-apc I get: Reading package lists... Done ...
1
vote
2answers
2k views

How to upgrade APC to latest in Ubuntu?

I am running 10.10 version. I install APC as sudo apt-get install php-apc It gets APC (3.1.3p1) installed. The latest one is 3.1.10 right now. How can I update to latest one? Thanks.
2
votes
1answer
595 views

Installing APC on CentOS 5.8 with PHP 5.2.17

I'm trying to install APC on CentOS 5.8 with PHP 5.2.17. I ran the dependancies, which weren't needed, and then pecl install apc and after a whole bunch of stuff, got: Build process completed ...
3
votes
3answers
1k views

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 ...
0
votes
2answers
579 views

nginx + php-fpm + apc … compression?

I have a VPS running nginx 1.1.19, php-fpm 5.3.10, and APC 3.1.9. The server is primarily running PHP scripts (vB, SMF, IPB) I'm also using Cloudflare as a CDN if that matters. From what I can tell, ...
2
votes
0answers
1k views

Best opcode cache for fcgid? (APC vs eaccelerator vs xcache)

I have been reading a while the web trying to find out about opcode caches for fcgid. As I understand so far APC is not a good solution for fcgid, since APC with fcgid caches only per process and that ...
3
votes
1answer
369 views

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 ...
5
votes
1answer
221 views

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 ...
4
votes
1answer
2k views

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 ...
0
votes
0answers
299 views

APC configuration

I've installed APC cache on CentOS 6.2, but it does not seem to show any statistics? APC.PHP General Cache Information APC Version 3.1.9 PHP Version 5.2.17 APC Host www.xyz.com ...