Установка

Это расширение » PECL не поставляется вместе с PHP. Информация по установке этого расширения PECL может быть найдена в главе руководства Установка PECL расширений. Дополнительная информация, такая как новые версии, скачивание, исходные файлы, информация о разработчике и CHANGELOG, может быть найдена здесь: » http://pecl.php.net/package/memcache.

Замечание:

Существует возможность запретить использование memcache в качестве обработчика сессий (session handler). Команда 'pecl install' выдает об этом запрос (по умолчанию включено). Кроме того, при статической компиляции в PHP для этой цели возможно использование опции конфигурации --disable-memcache-session .

Коментарии

on Fedora, apparently

yum install php-pecl-memcache
2008-06-18 11:01:17
http://php5.kiev.ua/manual/ru/memcache.installation.html
#if apt-get, rpm, or yum doesn't work
cd /usr/src/
wget http://pecl.php.net/get/memcache-2.2.4.tgz
tar -zxvf memcached-2.2.4.tgz
cd memcached-2.2.4
phpize && ./configure --enable-memcache && make
cp modules/memcache.so /usr/lib/php/modules/

# Note: packaged extension modules are now loaded via the .ini files
# found in the directory /etc/php.d
touch /etc/php.d/memcached.ini
echo 'extension=memcache.so' > /etc/php.d/memcached.ini

service httpd restart
2009-12-11 05:48:07
http://php5.kiev.ua/manual/ru/memcache.installation.html
It is very important to note when reading the information supplied by others on this page that there are two *distinct* memcache PHP implementations for the service "memcached".

1) pecl-memcache
2) pecl-memcached

This page is for the first, pecl-memcache. 

If you are looking for pecl-memcached information, visit here:

book.memcached
2010-04-19 15:47:59
http://php5.kiev.ua/manual/ru/memcache.installation.html
On Slackware, after copilling it, you should copy the file /module/memcache.so to /usr/lib/httpd/modules. Then, the instruction extension=memcache.so must be added into the file /etc/httpd/php.ini

Restart the httpd and it should work!
2011-10-16 18:54:55
http://php5.kiev.ua/manual/ru/memcache.installation.html
If you have error with libtool version after make - way to install:
phpize --clean && phpize
rm aclocal.m4
aclocal
autoconf
./configure
make
make install
[memcache-2.2.6, gentoo.x86-64]
2012-01-06 04:10:45
http://php5.kiev.ua/manual/ru/memcache.installation.html
I hope this will help someone, 
Context: I wanted to use memcache
like this:

$memcache = new \Memcache();

but composer suggests me to install the extension 
  "ext-memcache": "*",

but that one didn't want to work, so I installed 

sudo apt install php7.4-memcache 
sudo apt install php7.4-memcached 

and all worked
2021-07-30 10:16:15
http://php5.kiev.ua/manual/ru/memcache.installation.html

    Поддержать сайт на родительском проекте КГБ