Installing APC from beta/alpha development onto centOS 5.4 64 bit dual core

I had some trouble installing APC from the published stable and beta versions and from pecl / pear - errors like 

  error: 'apc_regex' has no member named 'nreg'

and  error: duplicate 'static'
Then I got it to compile but it failed the "make test" -- 

Finally, one of the developers get me the correct trick to download the dev release, and also I followed some instructions from a comment at -- this worked on my 2 core 64 bit machine:

yum install subversion
cd apc-trunk
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config
make test
make install
(then added the relevant line extension="" to /etc/php.ini)
service httpd restart
php -i | grep apc
There it is running.
I also added the following configuration as /etc/php.d/apc.ini
apc.enabled = 1
apc.shm_segments = 2
apc.shm_size = 48
apc.optimization = 0
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 500
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.rfc1867 = on
You can download the apc.php script from somewhere also in order to get even more data on your apc installation. I put mine in an admin directory that has htaccess blocking public assess, or even better that is only available through a ssh tunnel served on localhost.
Of course you have to remember that if you download it from dev / subversion like this, it's not necessarily a stable release, and it will be different than me downloading it on 4/24/2010 because development is ongoing, so just think about that carefully with relation to the sensitivity of the installation.  I'm not posting this page because it's my recommendation, but rather simply because it's what I did; I might use an alternative tomorrow instead.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I tried following your

I tried following your instructions however I get: configure: WARNING: unrecognized options: --with-apxs and it ends with error: 'apc_regex' has no member named 'nreg'