Joomla + APC + memcached

APC makes good cache.

configurations

http://php.net/manual/en/apc.configuration.php


apc.enabled=1                       # default = 1
apc.shm_segments=1                  # default = 1
apc.shm_size=128                    # default = 30
apc.ttl=7200                        # default = 0
apc.user_ttl=7200                   # default = 0
apc.num_files_hint=1024             # default = 1000
apc.mmap_file_mask=/tmp/apc.XXXXXX  # default = no value
apc.enable_cli=1                    # default = 0



and
apc.shm_size=256

apc.num_files_hint=10000
apc.user_entries_hint=10000
apc.max_file_size=5M
apc.stat=0


dont forget there is apc.php file that shows apc stats.


Memcached

to install memcached

http://dag.wieers.com/rpm/FAQ.php#B2

get dag wieers yum repo, then enable
You need to edit the file /etc/yum.repos.d/rpmforge.repo and put "enabled = 1" instead of "enabled = 0" in the [rpmforge-extras] section and then re-run your command yum -y install memcached.


then install as 


yum install memcached php-memcache

and then 

pecl install memcache

if fails make sure install 
gcc
using 

yum install gcc

then add extension=memcache.so to php.ini

thats it. dont forget to restart httpd and memcached also chkconfig memcached to start on boot


Comments

Popular posts from this blog

Set up RAID on Dell Poweredge 2850

How to implement Blueimp with Laravel 5

HackUB (Hackathon Ulaanbaatar) - Organizing event