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