Игорь Олемской — практические заметки по системному администрированию Linux CentOS

php memcache and memcached on CentOS 5 and up (перепечатка)

Комментариев нет

The first thing we should do is install rpmforge repo if still not, you can use this HOWTO.

the next step is installing memcached and libmemcache

yum install libmemcache memcached -y

starting memcached:

memcached -d -m 256 -l 127.0.0.1 -p 11211 -u nobody

you can add a line above to /etc/rc.local to start memcached daemon at system startup

now we will install memcache php extension

wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar -xvf memcache-2.1.2.tgz && cd memcache-2.1.2
phpize && ./configure --enable-memcache && make && make install
echo "extension=memcache.so" >> `php -i | grep "Loaded Configuration File" | awk '{print $5}'`

and restart apache: /etc/init.d/httpd restart

and now the task is done. enjoy it!

PS: sorry for terrible english.

Похожие записи:

  1. php-pecl-memcached-1.0.2
  2. php-pecl-memcache-3.0.5
  3. memcached on CentOS 5
  4. memcache vs memcached — сравниваем клиенты для PHP
  5. Обновление php-pecl-memcache из SVN, исправление ошибки «delete» для последних memcached

Комментировать