Install APC (Alternative PHP Cache) in RHEL/CentOS 6/5 & Fedora 20-12

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

29 Responses

  1. James says:

    Hi Ravi. Thanks for publishing this. I was able to use your instructions to install APC on my server’s default PHP version without a problem. However, I’m running a few other versions of PHP on the same server, and I’d like to use it on one of those, specifically PHP 5.6.35.

    I installed that with Plesk and the path to the php.d directory is /opt/plesk/php/5.6/etc/php.d. I tried placing the apc.ini file there, but that didn’t work. I also tried adding the directive “” directly to that PHPs php.ini file. It’s still not running.

    Do you have any advice to get this working?

    • Ravi Saive says:


      I suggest you to compile APC for your PHP 5.6 version to /opt/plesk/php/5.6/etc/php.d directory.. This is the only solution, I think.

  2. Mary Rax says:


    I am working on one of my client’s project which loads up very very slowly. I was going through the possible fix and came across below one but not sure whether this would work or not. Can somebody help?

    How to fix – Page Cache Test (Server Side Caching)

    In order to pass this test, you are advised to use a caching mechanism for your pages. There are three methods which can be used to caching your web pages:

    Alternative PHP caching
    – Alternative PHP Cache (APC) is an open source framework which caches data using intermediate PHP code. Most web programmers who are familiar with the PHP programming language can easily set up Alternative
    PHP Cache for your site.
    – Quickcache is a lightweight page caching solution which was formerly known as jpcache. Quickcache caches the page output rather than compiling the PHP page, making it a superior version of page caching to the Alternative PHP caching. Quickcache can be quickly downloaded from their website and can reduce your page load time up to 80%.
    WP Super Cache
    – If you have a WordPress website, WP Super Cache can be installed within seconds and without no programming knowledge.

    Mary Rax

  3. Maxczysto says:

    Good Tutorial, installed with no problems. Thanks for Share

  4. alessandro says:

    where can I find the version 3.1.15-dev to Centos?
    thank you
    Best regards

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.