Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
0answers
31 views

Remove apcu dev

I installed apcu manually from source using the below commands: cd /tmp git clone https://github.com/krakjoe/apcu cd apcu phpize ./configure make sudo make install How can I remove it? I want a ...
0
votes
1answer
72 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
0answers
57 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
1answer
349 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
0answers
657 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 ...
1
vote
2answers
332 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 ...
0
votes
0answers
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
0answers
494 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
1k 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 ...
1
vote
0answers
52 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 ...
0
votes
0answers
754 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 ...
1
vote
0answers
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
1answer
3k 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....
1
vote
0answers
143 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 ...
5
votes
0answers
1k 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
2answers
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
2answers
6k 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 ...
0
votes
1answer
1k 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-...
0
votes
2answers
952 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 ...
2
votes
1answer
249 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 ...
1
vote
1answer
475 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 ...
1
vote
1answer
317 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 ...
2
votes
2answers
3k 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 ...
2
votes
0answers
61 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
3
votes
1answer
12k 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 (...
2
votes
1answer
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. ...
3
votes
1answer
10k 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 ...
0
votes
0answers
261 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....
0
votes
1answer
858 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
2answers
202 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
1answer
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
1answer
81 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
1answer
1k 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
312 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 ...
0
votes
2answers
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
1answer
824 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
141 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
154 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 ...
0
votes
2answers
392 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 ...
3
votes
3answers
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 - ...
0
votes
1answer
937 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 ...
1
vote
3answers
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 ...
1
vote
2answers
8k 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 ...
6
votes
2answers
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. ...
0
votes
1answer
206 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 ...
2
votes
1answer
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 : ...
0
votes
1answer
917 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
1answer
274 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
1answer
78 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 ...