Install PHP accelerator php APC
- Read more about Install PHP accelerator php APC
- Log in to post comments
apt-get install -y php-apc
# configure apc
echo "apc.shm_size=128" >> /etc/php5/conf.d/apc.ini
# configure kernel shm
cat <> /etc/sysctl.conf
kernel.shmall = 134217728
kernel.shmmax = 134217728
EOF
sysctl -p /etc/sysctl.conf
# restart apache
/etc/init.d/apache2 restart
# configure magento to use apc
cp /var/www/app/etc/local.xml.additional /var/www/app/etc/local.xml.additional.org
diff ./app/etc/local.xml.additional.org ./app/etc/local.xml.additional -Naur
--- ./app/etc/local.xml.additional.org 2011-09-08 11:38:11.000000000 +0200
+++ ./app/etc/local.xml.additional