The instructions here detail how to getÂ APC running on aÂ CentOS 5 server. The server happened to have Plesk on it as well, which initially made me hesitant toÂ install APC â€œnormallyâ€, since Plesk is so picky on what other software is installed on the server. However, it seems to have worked out well.
First, we need theÂ pecl command so we can download andÂ install APC from the repositories.
Do to so, we execute the following command:
yum install php-pear
But, this will not run on its own, we need the following package for theÂ phpize command:
yum install php-devel
We also need theÂ apxs command, which is installed via the following package:
yum install httpd-devel
Now we have all the software we need, so weÂ install apc via the pecl command:
pecl install apc
Once that finishes, we need to enableÂ apc in Apacheâ€™s configuration. the following command should do this for us.
echo "extension=apc.so" > /etc/php.d/apc.ini
Then we restart Apache:
And we are all done