Questions tagged [alternative-php-cache]

Alternative PHP Cache is a free, open source framework that caches the output of the PHP bytecode compiler in shared memory.

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k 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 ...
2 votes
3 answers
2k views

How to install APC on a vagrant box running Ubuntu with PHP?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
1 vote
2 answers
5k 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
1 answer
1k 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 ...
2 votes
1 answer
2k views

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

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

Why APCu version mismatch the APC version reported in PHP?

I installed APCu for a MediaWiki website but I get some nasty errors about the caching. I noticed that the version of APCu is not the same as the one reported by APC. I verified the installed ...
0 votes
0 answers
151 views

php performance issues between two servers

I know this question might be too broad but I'm desperate. Prenote: Here I'm testing php with CLI but same difference occurs with Apache+PHP too. But to avoid Apache caching and other stuff I used ...
0 votes
2 answers
405 views

How do I make the server response faster on search results (WP, nginx, apc)

I have my own virtual server in the cloud, running nginx and APC. On this server I have one wordpress blog using the W3TC-plugin. I've enabled page cache and object cache using APC. When accessing ...
1 vote
0 answers
2k views

Using APC with HHVM / Nginx

I've been using APC for object caching with a PHP / Apache setup for a year or so and it's been working. Recently I've been playing around with HHVM and Nginx and installed APC. It seems to be ...
0 votes
0 answers
832 views

PHP APC cause server crash on Prestashop 1.6

I run Prestashop 1.6.0.9 on a Debian Wheezy dedicated server with Apache2 and PHP 5.4 with APC and 32Gb of memory on the server. The shop perfectly run without using APC, but when I enable this ...
0 votes
1 answer
564 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 ...
0 votes
1 answer
580 views

Determinate witch Php cache system is currently used

How can i find what php cache system is used by my server (APC/opcache/Zend...) ? If I run this command line, i've no information : php -v PHP 5.4.45-0+deb7u5 (cli) (built: Aug 30 2016 20:15:34) ...
0 votes
0 answers
847 views

Wordpress on Nginx+php5-fpm+varnish+APC high CPU and memory usage

After days of debugging and tweaking around with settings, I'm getting exhausted & unable to find a solution. Kindly guide. I've the following server on DigitalOcean: 64GB Memory 8 Core ...
0 votes
2 answers
2k views

Unable to install PHP5-APC

When trying to install php5-apc, getting this error : root@x-fr-1:/etc/apt# apt-get install php5-apc Reading package lists... Done Building dependency tree Reading state information... Done The ...
2 votes
2 answers
26k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [...
1 vote
2 answers
674 views

Can APC and OpCache co-exist in PHP5.4

We are generally running php 5.4.x with APC enabled on CENTOS for our production sites. We have a new app that is segfaulting and the development team thinks it is because we've got APC. The app is ...
2 votes
2 answers
1k views

APC uptime 0 because of Fast [closed]

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

E: Unable to locate package php5-apcu

trying to install APCu on Ubuntu: apt-get install php5-apcu Getting an error: E: Unable to locate package php5-apcu Following someone's suggestion I added: deb http://packages.dotdeb.org wheezy-...
1 vote
1 answer
2k views

APC - tuning apc.mmap_file_mask

When configuring APC as an opcode cache for PHP, there's a configuration setting called apc.mmap_file_mask. From what I've read there are three ways you can configure it but I don't really understand ...
1 vote
0 answers
583 views

opcache causing errors: Allowed memory size, and malloc: *** error for object 0x10b4cbaf8: pointer being freed was not allocated

Since I installed opcache I am getting these errors: [Thu Jun 04 17:31:02 2015] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
3 votes
2 answers
2k 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
1 answer
493 views

APC has no system cache entries

I have 2 web servers to provide PHP websites. One server is : Apache + PHP-FPM + APC The other : Apache with MPM-itk + APC. For both of these servers, APC has no cache system entries but only users ...
0 votes
1 answer
1k 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 ...
0 votes
1 answer
2k views

WHM/Cpanel Installing APC [closed]

What is the correct way to install APC on WHM and check that is is working? The steps I have carried out so far: SSH on the server as root and run yum install pcre-devel In WHM go to PHP ...
2 votes
3 answers
9k 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 ...
2 votes
3 answers
1k views

Ram issues with NGINX, PHP-FPM+APC and Varnish

I'm running a 512MB and i have lot of ram issues. I think is due to my configuration. root@s1:~# free -m total used free shared buffers cached Mem: 1024 ...
0 votes
1 answer
14k views

Strange PHP Warning (Unable to load dynamic library: no-debug-non-zts-20100525)

I temporarily set apc.enable_cli=1 in apc.ini, then run php -r "apc_clear_cache();" in the terminal to clear APC cache but this is what I got: PHP Warning: PHP Startup: Unable to load dynamic ...
0 votes
1 answer
881 views

PHP/APC Canonicalize not working as expected

Basic Info: APC Version 3.1.13 PHP Version 5.4.7-1~dotdeb.0 APC Host pcgamingwiki.com (li263-94) (173.255.253.94) Server Software nginx/1.2.4 In my config, I have apc.stat = 0 and apc....
0 votes
1 answer
295 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
1 answer
131 views

Incrementing values, alternate way of doing this that won't use MySQL

I need to count impressions of a .php script that is accessed via web. Right now I do this in a 1 line MySQL table and just increment the value. This works fine usually but when the server has traffic ...
0 votes
1 answer
3k views

php-fpm, nginx magento store. Coming to a halt

We just moved to a new server. 2 x Dedicated, 48 GB ram, php-fpm, nginx, memcached, APC. We have an issue where each php-fpm process that spawns keeps getting bigger. A fresh restart of php-fpm shows ...
0 votes
1 answer
877 views

PHP APC not working

I just installed APC with PHP Handler FastCGI. But it seems the Cache never working. if(($t=apc_fetch('key_4321'))===FALSE){ $t=time(); apc_add('key_4321', $t, 24*60*60); } echo $t; Almost ...
0 votes
2 answers
765 views

How to TAIL & EGREP for a specified time range in a BASH script

The subject mostly says it all. I am in charge of a few web servers running Ubuntu 12.04 running Apache2 & I would like to setup APC. Now I understand APC can hit segmentation fault issues when ...
0 votes
2 answers
954 views

Wordpress feed does not update after APC and Cloudflare

I am running a Wordpress site on a Ubuntu server. I installed APC and setup Cloudflare. After that I started having a strange problem with the feed. When I check the feed on the browser, I can see ...
0 votes
1 answer
2k views

Does PHP take advantage of APC if run as apache module with prefork?

I have installed APC, but I am not observing as big an impact on performance as I expected. Actually, I'm not sure I'm observing any benefit, though maybe it's just because the cpu time spent in ...
0 votes
1 answer
755 views

does apc cache count into php memory usage?

Does apc cache counts into php memory usage? I am using php-fpm but I am not sure if that is relevant. If apc memory is set to 256MB and php memory limit for individual workers is also 256MB does that ...
0 votes
1 answer
83 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 ...
0 votes
1 answer
314 views

Multiple instances of APC cache when refreshing apc.php

Hope you guys can provide some info on an issue I'm seeing. I'm running a Centos server with mod_fcgi and APC cache. APC cache is running, but when refreshing the apc.php, I see what look like ...
0 votes
1 answer
214 views

Every 4th sunday at 6:45am my web server goes down because of apc_mmap error

PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in Unknown on line 0 [Sun Aug 11 06:45:16 2013] [notice] seg fault or similar nasty error detected in the parent process The system (Ubuntu 12.04....
0 votes
1 answer
1k views

apc.shm_size : right value format

On howto and documentation, I generaly find this format apc.shm_size=512M but on one of my server APC 3.0.19 does not like the "M" and crash apache [apc-error] apc_mmap: mmap failed: Cannot ...
0 votes
1 answer
2k 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
2 answers
216 views

Wordpress (using varnish + apc + w3tc): Do the statistics get updated when the data is being retrieved from the cache?

If the data is served to the client from the varnish cache, does it still get registered as a hit in the statistics (could be derived from nginx logs or might be google analytics)? I believe if the ...
0 votes
1 answer
919 views

APC Memory Pool and Apache Problems

i have a problem with my APC and Apache. Since i have been installed APC on my VPS, i face to many problems. Here is one of them. My Apache keeps falling down, server port :80 is available, but its ...
0 votes
2 answers
2k views

Can zend opcode cache and APC cache run together on same server?

I am on a dedicated server - running multiple portals in respective virtual directories. Some of the previously loaded websites are using Zend opcode cache. While my new commerce portal uses an APC ...
-1 votes
2 answers
8k views

PHP Warning: Module 'apc' already loaded in Unknown on line 0

I am on a dedicated server with my site hosted in a virtual directory. There are few other sites hosted in different virtual directories. I have APC and APCu installed. When i restart PHP-FPM i get ...
3 votes
1 answer
11k views

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

APC resets after a few seconds

Got a new server and the host installed APC for me. Reloading apc.php shows that ACP resets itself every 4-6 seconds. Uptime is always 0 and hits never go above 3000. The site runs smoothly but if ...
0 votes
2 answers
1k views

APC file cache not working properly getting internal server error 500

I am having some problem with APC working properly. File cache always shows Hits = 1 and misses keep increasing, but at the same time, the cached file entries show some numbers in hundreds over some ...
1 vote
0 answers
523 views

Need help optimizing a LEMP stack on a 4GB dedicated server

Recently i got a project i'm working in financed by a friend. So he gave me access to a 60mbps dedicated connection link and a HP Compaq 8200 Elite. The HP is just a desktop, but i'm using it as a ...