http://www.tecmint.com/install-apc-alternative-php-cache-in-rhel-centos-fedora/
APC (Alternate PHP Cache) is an free and open source cache for PHP code. The main goal of this module is to provide robust framework for caching and optimizing PHP code.
The instructions provided here shows how to install and enable APC caching for PHP on RHEL 6.5/6.4/6.3/6.2/6.1/6/5.8/5.6, CentOS 6.5/6.4/6.3/6.2/6.1/6/5.8/5.6 and Fedora 20,19,18,17,16,15,14,13,12using PECL command to download from the repositories.
Install Dependency Packages for APC
First, we need to install required packages called pecl, phpize and apxs commands, to install APC using YUMpackage manager tool.
Install APC Using PECL
Now we have all the needed packages to install APC. Here we use PECL command to install it. Please select default settings when asked.
Sample Output :
Enable APC PHP Extension
Run the following command to enable APC extension in Apache configuration.
Restart Apache Service for APC
Restart the Apache service to take new changes.
Verify APC Installation
Create a file phpinfo.php in Apache web root directory. For example /var/www/html/phpinfo.php.
Add the following code to it. save and close.
Open any browser and type the following URL. You will see APC enabled configuration similar to below.
Enable PHP APC administration
To enable APC administration panel, copy the following file.
Now open the file apc.php with VI editor.
Now set the username and password in the file apc.php as shown below.
Type the following URL in the browser. You will get administration panel of APC.
Some screenshots of APC Administration panel for your reference.
Vies Host Stats
System Cache Entries
User Cache Entries
APC Login Screen
APC Version Check
Upgrade APC using PECL
To upgrade, just execute following command it will download and upgrade APC.
Uninstall APC using PECL
If you like to remove it, then simple type the following command to uninstall APC completely from the system.