How to Install APXS on CentOS

by Jay Darrington ; Updated September 28, 2017

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 neccesary 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.)

Video of the Day

Brought to you by Techwalla
Brought to you by Techwalla

About the Author

Jay Darrington has been a professional writer since 2006, specializing in technology. He has published on several online blogs, including iTech24, iPhoneland and Tech101. He holds a Bachelor of Arts in communication technology from California State University.

More Articles