mercoledì 25 agosto 2010

Install memcached and memcache PHP extension on Linux Fedora 13

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: