Linux 4 All

Best Linux tricks source

Posts in the php apc category

Configure APC module

This is a bit old as APC was replaced by Zend opcode cache. However here is a default “working” apc configuration file.

 

On RHEL based servers you can find it under

extension=apc.so
apc.enabled=1
apc.shm_size=256M
apc.ttl=7200
apc.user_ttl=7200
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.cache_by_default=1

If Apache keeps on SIGTERM-ing, increase shm_size value.

© 2017 Linux 4 All