Skip to main content

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
0 votes
1 answer
284 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 ...
HypeWolf's user avatar
  • 113
0 votes
0 answers
177 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 ...
Ergec's user avatar
  • 608
0 votes
1 answer
596 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) ...
Nicolas Schubhan's user avatar
0 votes
0 answers
861 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 ...
LittleLebowski's user avatar
1 vote
2 answers
734 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 ...
Wyatt Barnett's user avatar
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-...
VladaP's user avatar
  • 1
1 vote
0 answers
590 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 ...
jnbdz's user avatar
  • 967
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 ...
sa289's user avatar
  • 1,368
2 votes
1 answer
3k 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 ...
Ansari's user avatar
  • 176
1 vote
0 answers
59 views

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get ...
Steakfest's user avatar
0 votes
0 answers
841 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 ...
Xavier's user avatar
  • 1
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 ...
Steven Jones's user avatar
0 votes
1 answer
4k views

APC cache is enabled but not caching anything

I am trying to enable APC in a server running Ubuntu 14.04 APC seems to be correctly enabled since when I run this command: sudo php -i | grep "apc" The terminal returns that: apc apcu apc....
118218's user avatar
  • 121
1 vote
0 answers
155 views

Enabling APC cache takes down website

I have a VPS running on centos 5 with 2 GB ram. I run a IP.Board forum on that server. Recently my server was hacked and I had to format the disk and start again. I was using APC cache before and it ...
noisyoscillator's user avatar
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 ...
Ox3's user avatar
  • 161
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 ...
Satyadeo Kumar's user avatar
-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 ...
Satyadeo Kumar's user avatar
1 vote
1 answer
2k views

APCu - NO HIT and / or MISS. What am I missing?

I just installed php-pecl-apcu: # yum info php-pecl-apcu Loaded plugins: amazon-id, priorities, rhui-lb 4 packages excluded due to repository priority protections Installed Packages Name : php-...
alexus's user avatar
  • 13.6k
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 ...
Satyadeo Kumar's user avatar
2 votes
1 answer
383 views

How does PHP APC shared memory expiration works?

I am using the APC and see I still have 25MB of free memory. However, in the Cache full count, I see I have 8 already. So, why that happens? And if my understanding is: APC is not a LRU cache, so ...
Ryan's user avatar
  • 6,171
1 vote
1 answer
495 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 ...
lazzio's user avatar
  • 326
1 vote
1 answer
359 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 ...
Martin's user avatar
  • 220
2 votes
2 answers
4k views

php crashes with no core file and this message : apc_mmap failed

Description of the problem Regularly, cron php processes crash on our production server, which result in mails with the following body : PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in ...
greg0ire's user avatar
  • 316
2 votes
0 answers
73 views

PHP APC cannot increase cache above 32m

apc.shm_size I set it to 128M I have also try 128 (without M) But It always 32M :( /proc/sys/kernal/shmmax is set to 134217728
lfgmMM's user avatar
  • 21
3 votes
1 answer
13k views

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 (...
pufAmuf's user avatar
  • 105
2 votes
1 answer
3k 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. ...
martin's user avatar
  • 355
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 ...
Demontager's user avatar
0 votes
0 answers
290 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 apc....
user1218948's user avatar
0 votes
1 answer
922 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 ...
Seik's user avatar
  • 63
0 votes
2 answers
218 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 ...
aste123's user avatar
  • 121
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, ...
Paulo Coghi's user avatar
0 votes
1 answer
156 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 ...
Ruriko's user avatar
  • 105
0 votes
1 answer
2k 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 ...
urgent's user avatar
  • 3
0 votes
1 answer
460 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 ...
Nick's user avatar
  • 287
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 ...
oliviermis's user avatar
2 votes
1 answer
835 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 ...
sridhar pandurangiah's user avatar
0 votes
1 answer
157 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?
ComMania's user avatar
1 vote
1 answer
181 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 ...
kinglozzer's user avatar
0 votes
2 answers
408 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 ...
PappApp's user avatar
3 votes
3 answers
2k views

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 - ...
Coffeee's user avatar
  • 41
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 ...
Cédric Girard's user avatar
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 ...
user189078's user avatar
2 votes
2 answers
11k 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 ...
Martijn de Munnik's user avatar
6 votes
2 answers
10k views

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. ...
Manolo's user avatar
  • 592
0 votes
1 answer
215 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....
Nick's user avatar
  • 171
2 votes
1 answer
2k 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 : ...
Mathieu's user avatar
  • 73
0 votes
1 answer
1k 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 ...
aNewStart847's user avatar
0 votes
1 answer
325 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 ...
Aldo's user avatar
  • 3
0 votes
1 answer
85 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 ...
Sona7's user avatar
  • 9
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 ...
ufo's user avatar
  • 21