Skip to content

Instantly share code, notes, and snippets.

@markbirbeck
Created June 7, 2011 11:54
Show Gist options
  • Save markbirbeck/1012087 to your computer and use it in GitHub Desktop.
Save markbirbeck/1012087 to your computer and use it in GitHub Desktop.
Installing APC on CentOS servers
# Basic instructions derived from here:
#
# http://www.bilot.com/?p=477
#
# and here:
#
# http://mrfloris.com/vbulletin/installing-apc-on-centos-5-server/
#
# Additional information about the need for pcre-devel obtained from here:
#
# http://www.unixsurgeon.com/kb/make-apc-lo-error-1-apc-installation.html
# Install Pecl and other dependencies:
#
yum -y install php-pear php-devel httpd-devel pcre-devel
# Install APC:
#
pecl install apc
echo "extension=apc.so" > /etc/php.d/apc.ini
# Restart server:
#
service httpd restart
# Check it's being loaded correctly:
#
php -i | grep apc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment