Thanks,
but i no response after running the command # echo "extension=memcache.so" > /opt/plesk/php/5.6/etc/php.d/memcache.ini and i can not find it also in my php info
Thanks,
It is correct.no response after running the command # echo "extension=memcache.so" > /opt/plesk/php/5.6/etc/php.d/memcache.ini
Have you startedcan not find it also in my php info
It is correct.
Have you started
# plesk bin php_handler --reread
And checked that module is loaded in Tools&Settings->PHP Settings->PHP5.6 ?
yum is package manager of CentOS. For Debian use apt-get package manager. Names of required packages also may be different for Debian.-bash: yum: command not found
That's what i was looking for, i'm shocked, it's working!Here is the list of commands for Plesk Onyx and Ubuntu 16.04:
Ubuntu and Debian have mostly the very same package - names, so pls. at least TRY the suggested commands that @Arsenii Mironov suggested with:Can we get commands to install memcached on Plesk 12.5 under Debian 8 please ?
... especially, because the Plesk - paths doesn't differ at all on the operating systems, that Plesk supports.Here is the list of commands for Plesk Onyx and Ubuntu 16.04:
apt install plesk-php71-dev gcc make git pkg-config zlib1g-dev libmemcached11 libmemcached-dev
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached/
git checkout php7
/opt/plesk/php/7.1/bin/phpize
./configure --disable-memcached-sasl --with-php-config=/opt/plesk/php/7.1/bin/php-config
make && make install
echo "extension=memcached.so" > /opt/plesk/php/7.1/etc/php.d/memcached.ini
plesk bin php_handler --reread
Here is the list of commands for Plesk Onyx and Ubuntu 16.04:
apt install plesk-php71-dev gcc make git pkg-config zlib1g-dev libmemcached11 libmemcached-dev
git clone php-memcached-dev/php-memcached
cd php-memcached/
git checkout php7
/opt/plesk/php/7.1/bin/phpize
./configure --disable-memcached-sasl --with-php-config=/opt/plesk/php/7.1/bin/php-config
make && make install
echo "extension=memcached.so" > /opt/plesk/php/7.1/etc/php.d/memcached.ini
plesk bin php_handler --reread
and for uninstalling ?
# rm -f /opt/plesk/php/7.1/etc/php.d/memcached.ini
# plesk bin php_handler --reread
Find php config file where memcached.so is loaded with
# grep -R "memcached.so" /etc/php.d/*
# grep -R "memcached.so" /opt/plesk/php/*/etc/*
and remove this file. After that run
# plesk bin php_handler --reread
grep: /etc/php.d/*: No such file or directory
Location of system php configs depends on your OS. My sample was for CentOS7. Try to find correct location for your OS.grep: /etc/php.d/*: No such file or directory