PHP is an interpreted language, APC is made to cache the results of interpreting a script and reusing them in feature requests.
0
votes
1answer
29 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
65 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
44 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
110 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
0answers
53 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
107 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 ...
0
votes
0answers
64 views
APC Module for PHP not working to check upload progress
i am using APC to check the upload progress in a php-script.
At localhost it was working, but now at my server apc_fetch() returns false;
I think the problem are the APC settings. These are the ...
1
vote
1answer
558 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
55 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
360 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 ...
1
vote
1answer
134 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
149 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
489 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
99 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
151 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
110 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
0answers
89 views
Server downtime - are these APC warnings the cause?
Yesterday I had a problem with my dedicated server (Ubuntu 10.04, LAMP). It wasn't down per se, but running incredibly slowly as if we had a massive overload of visitors (though I don't think we did).
...
0
votes
1answer
242 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
296 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, ...
1
vote
1answer
777 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
62 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
300 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 ...
0
votes
2answers
319 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
382 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 ...
2
votes
1answer
2k 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
208 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
0answers
115 views
php handler as cgi/suexec
in my phpinfo it is showing php handler as cgi/fastcgi but i want to change it to cgi/suexec.
i tried from whm php and suexec configuration and i found that suphp is default php haldler then why ...
0
votes
1answer
287 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
180 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
927 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
462 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
574 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
402 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, ...
1
vote
0answers
696 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 ...
2
votes
1answer
281 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
183 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
1k 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
273 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 ...
2
votes
1answer
744 views
APC strange long responses
I have slow response issue on my debian 6 + nginx + apc 3.1.9 + php-fpm 5.3.10 server.
My website is based on symfony 1.4.
My setup is VPS with 512MB ram which is almost everytime used up to 250MB.
...
0
votes
1answer
280 views
APC + PHP-FPM Memory fragmented even with apc.user_ttl = 0
I'm running 5.3.9-1~dotdeb.3, with APC 3.1.9.
APC cache gets totally fragmented after a 2hours of running. Isn't the apc.user_ttl = 0 supposed to keep the files cached until APC is restarted - and ...
1
vote
3answers
753 views
APC minimal shm size
What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a Wordpress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there ...
-1
votes
2answers
185 views
How to integrate Ngin-x with APC and php
I'm running a PHP script on a Nginx server. I've installed APC but I'm not sure whether it's working with Nginx or not
My server is CentOS with cPanel. I have full control and root access. What ...
0
votes
1answer
423 views
APC keeps flushing
See my APC here: http://www.animefushigi.com/apc.php
If you keep hitting the Refresh button on the top left, watch the number of "Hits" and the "Start Time" and "Uptime" values. They all go up and ...
5
votes
3answers
2k views
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 ...
0
votes
1answer
201 views
Missing Dependency issue when trying to install apc extension for php
I'm trying to install apc extension for php according to this tutorial: http://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html but can't successfully run the first command. Here is what I ...
0
votes
2answers
212 views
How to make APC work with PHP
I have installed APC for php using
yum install pcre-devel
pecl install apc
restorecon /usr/lib64/php/modules/apc.so
Everything installed correctly but still i can't see APC module in phpinfo
3
votes
2answers
562 views
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 ...
1
vote
1answer
1k views
I cannot install APC
I have php 5.3.6 and ubuntu. I want to install APC.
When I do the $ pecl install apc, I eventually get an error:
In file included from /tmp/pear/temp/APC/apc.c:44:0:
...
1
vote
4answers
2k views
Disable or Remove APC
I am too frustrated with PHP APC caching system and I wanted to remove/disable it completely from my server. I am using PHP with Nginx installed on Debian Squeeze, is there any way of doing it ?
1
vote
1answer
263 views
Intermittent error 404 during higher loads. (nginx/php/apc/mysql)
I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...