From root, install memcached server and start it:
# yum install memcached
# /etc/init.d/memcached start
install php pear and memcache extension:
# yum install php-devel
# yum install php-pear
# echo "extension=memcache.so" > /etc/php.d/memcache.ini
restart apache
# /etc/init.d/httpd start
and test with php page that you can found in the memcache's distribution http://pecl.php.net/package/memcache (attention that you have to modify the php source to redefine you memcached server instance $MEMCACHE_SERVERS[] = 'localhost:11211';)
Nessun commento:
Posta un commento