If you plan to use your CentOS Linux server to host PHP applications, such as Drupal, Wordpress or MovableType, you may want to install a PHP cache accelerator such as APC. This helps your system run PHP applications faster for end users. To use APC, however, you must install APSX and its components first.
Click on the "Accessories" menu in your CentOS desktop.
Click on "Terminal" in the menu that appears.
Install the software necessary for APXS by typuing the following commands, pressing "Enter" after each one:
"yum install php-pear"
"yum install php-devel"
"yum install httpd-devel"
"pecl install apc"
Type "echo "extension=apc.so" > /etc./php.d/apc.ini" and press "Enter" to enable APXS's configuration for your server.
Type "/etc./init.d/httpd start" and press Enter to restart Apache (If needed.)