The Alternative PHP Cache (APC) is a free open source project of PHP. It gives a very good sollution for code cache of PHP. UsingAPC will considerably boost up the speed of your PHP site. It caches immidiate opcode of PHP and also gives a user cache for storing the application data.
Below are the steps for downloading APC and installin it with PHP...
Download the APC tar ball ...
# wget http://pecl.php.net/package/APC
Unpack it into a directory..
now run the below caoomand ...
Here the version of phpize corresponds to the version of PHP you want to install for.
Now run the following commands
# ./configure --enable-apc --with-apxs --with-php-config=/opt/lampp/bin/php-config-5.0.4
# make install
If every thing goes well, edit your php.ini
# vi /etc/php.ini
and add the below line and save the file.
Now restart the apache server...
# service httpd restart
Now create a .php file with phpinfo() and run it in the browser. If the output shows a section for APC, the installation is successful.
Always set the APC memory very carefully in the apc config file.