How do I install APC on CentOS 7?

June 1, 2017 8.7k views
Nginx CentOS

Im looking for a tutorial to install and configure APC on CentOS 7. I see there is one for Ubuntu but not for CentOS.

1 Answer

Hi @riahc4
Do you mean APC as in the PHP module? If yes, then it’s been replaced by OPcache, which is many times faster. OPcache is available from 5.6 and activated by default from 7.0

  • The issue is that I am running a old version of a CMS and it used APC. Im not sure if OPcache is compatible.

    • @riahc4

      Then you need to install an old version of PHP, which would be a security issue, so that isn’t recommended.
      What’s the recommended version of PHP as noted by the CMS release notes?

      But is APC required by the CMS? I would think it’s a feature, not a requirement.
      I think there’s a module called APCu, which is supported by PHP7+, but I actually don’t know if it’s a replacement for APC or some other functionality.

      By the way, which CMS is it, if you are allowed to tell?

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!