HOW-TO: Install APC

i'll try to get to that tomorrow then and report how it breaks...I mean works :)
 
My custom code added in php.ini:


; Custom

; Directory in which the loadable extensions (modules) reside.
;extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/" (Memcache)
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626/" (APC)

session.save_handler=memcached
session.save_path="127.0.0.1:11211"

;Memcache
extension=memcache.so

;APC
extension=apc.so

mail.add_x_header = On

If I un-comment: extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
My site gives me an error, memcache related error.


How to call this two extension_dir without having any error?
 
all of mine are in no-debug-non-zts-20100525, I did have to move one .so file manually but I forget what one.

they say this apc version is corrected but patch date is after the 3.1.10 date and 3.1.10 still has wrong info in the files.
patch they supply does not seem to want to apply either so I will just let it ride as is.
 
Last edited:
My site gives me an error, memcache related error.
How to call this two extension_dir without having any error?

What exactly it says? Please post here related lines from error log of your virtual host or from your web-site page.
 
I install APC on PHP 5.3.21 with this : http://help.directadmin.com/item.php?id=400
All works very good (except APC-3.1.14.tgz does not exist, it's APC-3.1.13.tgz)

One question to configure APC. I do not find information for me.
=> What is the "good" size for : apc.shm_size

I read it can't be more than : shmmax

Code:
# cat /proc/sys/kernel/shmmax
68719476736

So 65Go
I put
apc.shm_size=8192M

is it ok ? I find only "small" size in all examples (30M to 128M, no more)
My server is empty actually (only one account) so difficult to test
 
Back
Top