How to install APC PHP accelerator

User login

Here is a list of commands to install APC php accelerator on CentOS:

yum install php-pear
yum install pcre-devel
yum install php-devel
yum install httpd-devel
pecl install apc-beta
echo "extension=apc.so" > /etc/php.d/apc.ini
service httpd restart

To see if APC is loading, create a php file e.g. info.php with the code phpinfo();.
Search for the APC section in the output of this file.

Tags: 
Server configuration, PHP / MySQL, Apache, CentOS