Apache

User login

How to install APC & Uploadprogress on Centos 5

First things first, we need the pecl command in order to download and install APC from the repositories.

Let's run the following command in our terminal:

yum install php-pear

Then, we are making availlable a required package for the phpize command:

yum install php-devel

The followng package will allow apxs command:

yum install httpd-devel

Once we have all the above pakages installed, we are ready to install apc by running the pecl command:

pecl install apc

How to install APC PHP accelerator

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.

Subscribe to Apache