Tuesday, January 29, 2013

APC - Caching support system for PHP

ACP is an alternative caching support system for PHP. It enables PHP intermediate code to be
cached and improve the performance of Apache2 and other programs which may execute PHP
code.

To install APC support system for PHP:
1. Launch putty and login SSH to the system
2. Launch the following command:
apt-get install php-pear php5-dev apache2-prefork-dev build-essential make && pecl install apc
3.Edit the php.ini configuration file to include apc extension module:
nano /etc/php5/apache2/php.ini
4. Add the following text to the file, in the Dynamic Extension section, some way down the file:
extension=apc.so
5. restart the apache system by:
service apache2 restart

0 comments: