You are not logged in.
Hi,
I am trying to get APC to work with PHP. And I am wondering if it is really working.
I have installed the archlinux APC and PHP.
Then I uncommented /etc/php/conf.d/apc.ini in so:
extension=apc.so
When i run php_info():
there is actually a new section for APC:
APC Support enabled
Version 3.0.19
MMAP Support Enabled
MMAP File Mask no value
Locking type pthread mutex Locks
Revision $Revision: 3.154.2.5 $
Build Date May 15 2008 19:49:30
but,
when i do: php-cgi -v
PHP 5.2.9 with Suhosin-Patch 0.9.7 (cgi-fcgi) (built: Mar 25 2009 14:59:15)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
shouldn't it print something at the bottom saying something like "with APC ...."
my other consern is if php actually needs to be compiled with support for APC and that is not the case with the php that comes with the
archlinux package? If I do: php-config
I can not see anything about APC.
If I try to benchmark with and without extension=apc.so I don't see any improvements, actually it is some percent slower with apc commented in.
Last edited by jb234 (2009-06-22 11:27:25)
Offline
By default APC is disabled on console (it does not make any sense here)
Offline
Ok, I think it is working.
The problem was testing with a too small a php-script. The bigger a php-script the more potential for speedup from apc.
Sorry for the confusion.
Offline