• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved php plesk and memcache(d) extension

Please, read carefully. Full command is

# php-info.png
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
 
no response after running the command # echo "extension=memcache.so" > /opt/plesk/php/5.6/etc/php.d/memcache.ini
It is correct.
can not find it also in my php info
Have you started
# plesk bin php_handler --reread
And checked that module is loaded in Tools&Settings->PHP Settings->PHP5.6 ?
 
It is correct.

Have you started
# plesk bin php_handler --reread
And checked that module is loaded in Tools&Settings->PHP Settings->PHP5.6 ?

I am having this issue on w3Total Cache plugin of wordpress
The following memcached servers are not responding or not running:

  • Page Cache: 127.0.0.1:11211.
This message will automatically disappear once the issue is resolved.

please help.
 
I have some question about installation of memcached extension on my server:

OS: Debian 7.11‬
Product Plesk Onyx Version 17.0.17
Update #16, last updated on Feb 14, 2017 12:10 AM
PHP 7.1.1

root@sd-xxxxxxx:~# /opt/plesk/php/7.1/bin/pecl install memcached
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.1/lib/php/modules/memcached.so' - /opt/plesk/php/7.1/lib/php/modules/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.0.2.tgz ...
Starting to download memcached-3.0.2.tgz (77,063 bytes)
.................done: 77,063 bytes
15 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed
root@xxxxxxx:~# # yum install make plesk-php71-devel gcc glibc-devel libmemcached-devel zlib-devel git
root@xxxxxxx:~# yum install make plesk-php71-devel gcc glibc-devel libmemcached-devel zlib-devel git
-bash: yum: command not found


I try it 100 times, and spend more an 20 hours withoth success, do you have some sugestions to me, please

Regards
 
root@xxxx:~# /opt/plesk/php/7.1/bin/pecl install memcached
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.1/lib/php/modules/memcached.so' - /opt/plesk/php/7.1/lib/php/modules/memcached.so: invalid ELF header in Unknown on line 0
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.0.2.tgz ...
Starting to download memcached-3.0.2.tgz (77,063 bytes)
.........done: 77,063 bytes
15 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed


root@xxxx:~# apt-get install make plesk-php71-devel gcc glibc-devel libmemcached-devel zlib-devel git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package plesk-php71-devel
E: Unable to locate package glibc-devel
E: Unable to locate package libmemcached-devel
E: Unable to locate package zlib-devel
 
As I wrote before, names of required packages can be another on Debian. But you tried to use names of CentOS packages on your Debian server.
You need to run

# apt-get install make plesk-php71-dev gcc libmemcached-dev git pkg-config zlib1g-dev
 
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
 
Hi Pascal_Netenvie,

Can we get commands to install memcached on Plesk 12.5 under Debian 8 please ?
Ubuntu and Debian have mostly the very same package - names, so pls. at least TRY the suggested commands that @Arsenii Mironov suggested with:
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
... especially, because the Plesk - paths doesn't differ at all on the operating systems, that Plesk supports. ;)


If you experience any issues/errors/problems/, pls. don't hesitate to open a new thread, as this one is solved and answered. :)
 
Thanks for your answer.
I ask before trying (despite i know Ubuntu is very close to Debian) because i work on a production server and we only have PHP 7.0.x.
So i prefer ask first instead of doing bullshits :D

Regards.
 
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

after I did a migration from a server where it was installed memcached.so to a new server without installing the memcached, because I don't want it anymore
I keep getting this email every 30 min:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/memcached.so' - /usr/lib/php/20151012/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0

I tried the uninstall command on both servers then migrate again, but the problem still persist
Issue - nginx: [emerg] a duplicate default server
 
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
 
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


the first command result:
Code:
grep: /etc/php.d/*: No such file or directory
the second command gives me nothing

on the old server I found the 4 files
iam deleting them then I will let you know if I keep getting the email
thanks
 
Back
Top