Tuesday, April 12, 2011

Install PHP APC on RHEL and CentOS

Install prerequisites:
yum install php-pear php-devel httpd-devel pcre pcre-devel

Install APC with pear:
pear install pecl/apc

Tell PHP to load the APC module. Edit/create /etc/php.d/apc.ini and add:
extension=apc.so

Restart Apache

0 comments: