Install PHP APC Cache on CentOS 7 using yum

To install APC cache on CentOS 7, run

After that, you need to restart the Apache webserver.

in phpinfo() page, you will see

php APC cache in phpinfo

Files in the packages are

Config file located at

Some configuration settings

apc.shm_size – default is 64M, it is better increase this value to 128M

apc.stat – default 1, set it to 0 to increase performance. Setting it to 0 means APC won’t look for code change. When you change code, you will need to restart web server.

apc.num_files_hint – Tell APC how many PHP files it needs to cache. Set it to 10000

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *