we need the pecl command so we can download and install APC from the repositories.
yum install php-pear php-devel httpd-devel
pecl install apcat the end you can read
Build process completed successfully Installing '/usr/lib/php/modules/apc.so' install ok: channel://pecl.php.net/APC-3.0.19 configuration option "php_ini" is not set to php.ini location You should add "extension=apc.so" to php.iniopen php.ini, find
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;;add this line under it extension=apc.so save & exit, and restart the service
/etc/init.d/php_cgi restartfor apache
/etc/init.d/httpd restart