Created
June 7, 2011 11:54
-
-
Save markbirbeck/1012087 to your computer and use it in GitHub Desktop.
Installing APC on CentOS servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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