Install APC on CentOS/Fedore

To install APC, or Alternative PHP Cache, on your CentOS webserver, you should first install its dependencies:

yum install php-pear php-devel httpd-devel pcre-devel gcc make

Now, install APC with the use of PECL (or PHP Extension Community Library):

pecl install apc

Now it is installed, we should enable it in our Apache configuration file. To enable it, we edit our php.ini file:

echo "" > /etc/php.d/apc.ini

We finalize the installation of APC on our Linux server running Apache by restarting the Apache daemon.

service httpd restart


Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.


Leave a Reply

Your email address will not be published. Required fields are marked *